PHP code example of vipinbose / hashids-bundle
1. Go to this page and download the library: Download vipinbose/hashids-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vipinbose / hashids-bundle example snippets
return [
…,
Vipinbose\HashidsBundle\VipinboseHashidsBundle::class => ['all' => true],
];
use Vipinbose\HashidsBundle\Interfaces\HashidsServiceInterface;
public function __construct(
private HashidsServiceInterface $hasher,
) {
}
/**
* @Route("/users/{hashid}")
*/
public function getAction(User $user)
{
}