File: installation.md

package info (click to toggle)
php-lcobucci-jwt 5.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,280 kB
  • sloc: php: 6,674; makefile: 49
file content (27 lines) | stat: -rw-r--r-- 880 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Installation

This package is available on [Packagist] and you can install it using [Composer].

By running the following command you'll add `lcobucci/jwt` as a dependency to your project:

```sh
composer require lcobucci/jwt
```

## Autoloading

!!! Note
    We'll be omitting the autoloader from the code samples to simplify the documentation.

In order to be able to use the classes provided by this library you're also required to include [Composer]'s autoloader in your application:

```php
require 'vendor/autoload.php';
```

!!! Tip
    If you're not familiar with how [composer] works, we highly recommend you to take some time to read it's documentation - especially the [autoloading section].

[Packagist]: https://packagist.org/packages/lcobucci/jwt
[Composer]: https://getcomposer.org
[autoloading section]: https://getcomposer.org/doc/01-basic-usage.md#autoloading