PHP code example of headsnet / symfony-tools-bundle
1. Go to this page and download the library: Download headsnet/symfony-tools-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/ */
headsnet / symfony-tools-bundle example snippets
// bundles.php
return [
...
Headsnet\DoctrineToolsBundle\HeadsnetSymfonyToolsBundle::class => ['all' => true],
];
// src/Controllers/ApiController.php
#[RateLimiting('anonymous_api')]
#[Route('/create')]
public function createAccount(): JsonResponse
{
// your controller logic...
}
rate-limit-limit: 1
rate-limit-remaining: 0
rate-limit-reset: -7