mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-02 14:17:26 +02:00
Improve installation instructions by excluding steps for manual setup
This commit is contained in:
20
README.md
20
README.md
@@ -22,20 +22,20 @@ Completely framework-agnostic and database-agnostic.
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
* Set up the PHP library
|
1. Include the library via [Composer](https://getcomposer.org/)
|
||||||
* Install via [Composer](https://getcomposer.org/) (recommended)
|
|
||||||
|
|
||||||
`$ composer require delight-im/auth`
|
```
|
||||||
|
$ composer require delight-im/auth
|
||||||
|
```
|
||||||
|
|
||||||
Include the Composer autoloader:
|
1. Include the Composer autoloader:
|
||||||
|
|
||||||
`require __DIR__.'/vendor/autoload.php';`
|
```php
|
||||||
|
require __DIR__ . '/vendor/autoload.php';
|
||||||
|
```
|
||||||
|
|
||||||
|
1. Set up a database and create the required tables
|
||||||
|
|
||||||
* or
|
|
||||||
* Install manually
|
|
||||||
* Copy the contents of the [`src`](src) directory to a subfolder of your project
|
|
||||||
* Include the files in your code via `require` or `require_once`
|
|
||||||
* Set up a database and create the required tables
|
|
||||||
* [MySQL](Database/MySQL.sql)
|
* [MySQL](Database/MySQL.sql)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
Reference in New Issue
Block a user