2017 © Pedro Peláez
 

library sofa-csrf

The library is designed to be soft csrf protection in Phalcon application.

image

timur-flush/sofa-csrf

The library is designed to be soft csrf protection in Phalcon application.

  • Monday, July 9, 2018
  • by TimurFlush
  • Repository
  • 0 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 44 % Grown

The README.md

Sofa Csrf

The library is designed to be soft csrf protection in Phalcon application., (*1)

Attention please

The token is permanent within the current session. Even if the token is entered incorrectly, it is not updated within the current session., (*2)

Using

//in Dependency Injection
$di->setShared(
    'csrf',
    function() {
        //The variable must store the value of interface \Phalcon\Session\AdapterInterface
        $sessionAdapter = $this->getSession();

        return new \TimurFlush\SofaCsrf\Protection($sessionAdapter);
    }
);

//in form
class form extends \Phalcon\Form
{
    public function initialize()
    {
        $csrf = new Hidden('csrf_token');
        $csrf->addValidator(
            new \TimurFlush\SofaCsrf\Validator\Csrf(
                [
                    'message' => 'Invalid csrf. Try again!'
                    //option 'cancelOnFail' is already installed
                ]
            )
        );
    }
}

License

BSD-3-Clause, (*3)

Version

2.0.0-B1, (*4)

Author

Timur Flush, (*5)

E-mail: flush02@tutanota.com, (*6)

Telegram: @flush02, (*7)

The Versions

09/07 2018

v1.0.0

1.0.0.0

The library is designed to be soft csrf protection in Phalcon application.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.2.0
  • ext-phalcon ^3.3.0

 

by flush02

06/07 2018

dev-master

9999999-dev

The library is designed to be soft csrf protection in Phalcon application.

  Sources   Download

Apache-2.0 BSD-3-Clause

The Requires

  • php ^7.2.0
  • ext-phalcon ^3.3.0

 

by flush02

06/07 2018

1.x-dev

1.9999999.9999999.9999999-dev

The library is designed to be soft csrf protection in Phalcon application.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.2.0
  • ext-phalcon ^3.3.0

 

by flush02

06/07 2018

v1.0.0-B1

1.0.0.0-beta1

The library is designed to be soft csrf protection in Phalcon application.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.2.0
  • ext-phalcon ^3.3.0

 

by flush02

21/03 2018

1.0.4

1.0.4.0

The library is designed to be soft csrf protection in Phalcon application.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.2.0
  • ext-phalcon ^3.3.0

 

by flush02

03/02 2018

dev-dev

dev-dev https://bitbucket.org/TimurFlush/sofa-csrf

The library is designed to be soft csrf protection in Phalcon application.

  Sources   Download

Apache-2.0

The Requires

  • php ^7.1.0
  • ext-phalcon ^3.3.0

 

by flush02

03/02 2018

1.0.3

1.0.3.0 https://bitbucket.org/TimurFlush/sofa-csrf

The library is designed to be soft csrf protection in Phalcon application.

  Sources   Download

Apache-2.0

The Requires

  • php ^7.1.0
  • ext-phalcon ^3.3.0

 

by flush02

03/02 2018

1.0.2

1.0.2.0 https://bitbucket.org/TimurFlush/sofa-csrf

The library is designed to be soft csrf protection in Phalcon application.

  Sources   Download

Apache-2.0

The Requires

  • php ^7.1.0
  • ext-phalcon ^3.3.0

 

by flush02

03/02 2018

1.0.1

1.0.1.0 https://bitbucket.org/TimurFlush/sofa-csrf

The library is designed to be soft csrf protection in Phalcon application.

  Sources   Download

Apache-2.0

The Requires

  • php ^7.1.0
  • ext-phalcon ^3.3.0

 

by flush02

03/02 2018

1.0.0

1.0.0.0 https://bitbucket.org/TimurFlush/sofa-csrf

The library is designed to be soft csrf protection in Phalcon application.

  Sources   Download

Apache-2.0

The Requires

  • php ^7.1.0
  • ext-phalcon ^3.3.0

 

by flush02