1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-04 15:17:28 +02:00

Improve language in README

This commit is contained in:
Marco
2017-01-30 18:23:30 +01:00
parent 6bfa298836
commit 9187840767

View File

@@ -40,7 +40,7 @@ Completely framework-agnostic and database-agnostic.
## Usage
### Create a new instance
### Creating a new instance
```php
// $db = new PDO('mysql:dbname=my-database;host=localhost;charset=utf8mb4', 'my-username', 'my-password');
@@ -58,7 +58,7 @@ Only in the very rare case that you need access to your cookies from JavaScript,
If your web server is behind a proxy server and `$_SERVER['REMOTE_ADDR']` only contains the proxy's IP address, you must pass the user's real IP address to the constructor in the fourth argument. The default is `null`.
### Registration (sign up a new user)
### Registration (sign up)
```php
try {
@@ -92,7 +92,7 @@ $url = 'https://www.example.com/verify_email?selector='.urlencode($selector).'&t
If you don't want to perform email verification, just omit the last parameter to `Auth#register`. The new user will be active immediately, then.
### Login (sign in an existing user)
### Login (sign in)
```php
try {