Download the PHP package jusbrasil/tornado-auth-php without Composer
On this page you can find all versions of the php package jusbrasil/tornado-auth-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jusbrasil/tornado-auth-php
More information about jusbrasil/tornado-auth-php
Files in jusbrasil/tornado-auth-php
Package tornado-auth-php
Short Description Tornado Web Authentication in PHP
License MIT
Informations about the package tornado-auth-php

Tornado Auth PHP
Implementation of Tornado Web Authentication in PHP.
Getting Started
First, you need to have the composer
installed. After this, run the require
command of composer
to install the package as your project dependency.
composer require jusbrasil/tornado-auth-php
Usage
namespace
configure ( array[string] mixed $options ) : void
max_age_days
- Number of days that the signature is valid.user_cookie
- The name of the cookie.secret_key
- The secret key used to decrypt the signed value.
createSignedValue ( mixed $value ) : string
Sign the passed value.
createSignedCookie( string $cookieName, mixed $value ) : string
Sign the passed value.
decodeSignedValue ( string $secret, string $name, string $value [, int $maxAgeDays ] ) : string
Decode the signed value into string.
getSecureCookie ( string $cookieName, string $value [, int $maxAgeDays ] ) : object
getCurrentUser ( mixed $value [, int $maxAgeDays ] ) : object
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Prerequisites
Installing
Clone the repository
git clone [email protected]:jusbrasil/tornado-auth-php.git
Set up the development environment
docker-compose up -d --build
Access the container
docker-compose exec app ash
Or, run directly the command that you want (e.g.)
docker-compose exec app php src/index.php
Versioning
We use SemVer for versioning. Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR
major changes or a defined group of features that belongs to the same scopeMINOR
a new feature or refactoring an existing featurePATCH
fixing a bug or improving something from the latest stable version
For the versions available, see the tags on this repository.
Built With
- PHP
v7.3.8
- Hypertext Preprocessor - Composer
v1.9.0
- Dependency Manager for PHP
License
This project is licensed under the MIT License - see the LICENSE file for details
Acknowledgments
- Based on tornado-auth-js