1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-01 13:50:13 +02:00

Improve installation instructions by excluding steps for manual setup

This commit is contained in:
Marco
2017-01-30 19:31:45 +01:00
parent f5027c09e9
commit 4f5ff151ef

View File

@@ -22,21 +22,21 @@ Completely framework-agnostic and database-agnostic.
## Installation
* Set up the PHP library
* Install via [Composer](https://getcomposer.org/) (recommended)
1. Include the library via [Composer](https://getcomposer.org/)
`$ 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';
```
* 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)
1. Set up a database and create the required tables
* [MySQL](Database/MySQL.sql)
## Usage