Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ Easily protect against [CSRF](https://www.owasp.org/index.php/Cross-Site_Request
Installation
------------

This library is published on packagist. To install using Composer, add the `"athens/csrf": "0.1.*"` line to your "require" dependencies:
This library is published on packagist. To install using Composer, simply run `composer require athens/csrf` or add this line to your "require" dependencies:

```
{
"require": {
...
"athens/csrf": "1.*",
"athens/csrf": "2.*",
...
}
}
Expand All @@ -30,7 +30,7 @@ Use
---

Using this package requires only two lines:
```
```php
// Import the CSRF class
use Athens\CSRF\CSRF;

Expand All @@ -39,7 +39,7 @@ Using this package requires only two lines:
```

The method `::init()` will automatically insert a hidden CSRF token field into your forms:
```
```html
<!--output html-->
...
<form>
Expand All @@ -49,7 +49,7 @@ The method `::init()` will automatically insert a hidden CSRF token field into y
This token will be included automatically in any of your form submissions.

Incase you perform form submission via AJAX, `::init()` also inserts a `CSRF_TOKEN` variable into your javascript:
```
```html
<!--output html-->
...
<head>
Expand Down