PHP code example of plotkabytes / redlink-api-symfony-bundle
1. Go to this page and download the library: Download plotkabytes/redlink-api-symfony-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/ */
plotkabytes / redlink-api-symfony-bundle example snippets
// config/bundles.php
return [
// ...
Plotkabytes\RedlinkApiBundle\PlotkabytesRedlinkApiBundle.php::class => ['all' => true],
];
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Plotkabytes\RedlinkApi;
class DefaultController extends AbstractController {
private $client;
public function __construct(DefaultClient $client) {
$this->client = $client;
}
}