11/05
2014
dev-master
9999999-devHashids for Silex
MIT
The Requires
The Development Requires
by Jimmy Leger
silex hashids
Wallogit.com
2017 © Pedro Peláez
Hashids for Silex
use Redpanda\Silex\Provider\HashidsServiceProvider;
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
$app = new Application();
$app->register(new HashidsServiceProvider(), array(
'hashids.options' => array(
'post' => array(
'salt' => 'mySalt',
'min_hash_length' => 5,
'alphabet' => ''
)
)
));
// encrypt
$hash = $app['hashids']['post']->encrypt(1,2,3);
// decrypt
$numbers = $app['hashids']['post']->decrypt($hash);
MIT License, (*2)
Hashids for Silex
MIT
silex hashids