Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"