Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/athiththan11/csrf-synchronizer-token-pattern-php
CSRF Synchronizer Token Pattern - PHP
https://github.com/athiththan11/csrf-synchronizer-token-pattern-php
csrf csrf-token php synchronizer-token-pattern
Last synced: 19 days ago
JSON representation
CSRF Synchronizer Token Pattern - PHP
- Host: GitHub
- URL: https://github.com/athiththan11/csrf-synchronizer-token-pattern-php
- Owner: athiththan11
- License: mit
- Created: 2018-08-28T17:39:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-22T18:20:25.000Z (over 3 years ago)
- Last Synced: 2024-11-08T15:00:09.891Z (2 months ago)
- Topics: csrf, csrf-token, php, synchronizer-token-pattern
- Language: PHP
- Homepage:
- Size: 310 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CSRF Synchronizer Token Pattern - PHP
A sample implementation of CSRF Synchronizer Token Pattern in PHP
[live demo](https://csrf-stp.herokuapp.com) | Deployed on Heroku
## Getting Started
### Install PHP
You'll need PHP in your working machine to run this application
Download and install either
- [xampp](https://www.apachefriends.org/index.html)
- [wampp](http://www.wampserver.com/en/)to run this application your local machine
OR
Download and install PHP for windows in [here](https://windows.php.net/download/). You can refer [this](https://www.jeffgeerling.com/blog/2018/installing-php-7-and-composer-on-windows-10) post to install PHP 7 in your windows machine and to set the environment variables.
If you are using VS code as your text editor, you can install [this extension](https://marketplace.visualstudio.com/items?itemName=brapifra.phpserver) to run the application straight from your text editor. (Make sure to install PHP as first priority and then install the extension to configure the $PATH variables).
### Run
If the environment is configured using either xampp or wamp servers, then clone the repo and paste it inside the htdocs folder to run the application.
If the environment is configured manually with the VS code extension, then clone the repo and open it using VS code. Then start the PHP server by pressing
`ctrl+shift+p` and searching for "Serve Project with PHP"