1. Go to this page and download the library: Download antares/accessible-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/ */
antares / accessible-bundle example snippets
class Customer
{
use AutomatedBehaviorTrait;
/**
* @Access({Access::GET, Access::SET})
* @Assert\Email
*/
private $email;
}
$bob = new Customer();
$bob->setEmail('[email protected]');
$bob->getEmail(); // [email protected]
$bob->setEmail('not an email address'); // throws an InvalidArgumentException
composer
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Antares\Bundle\AccessibleBundle\AntaresAccessibleBundle()
);
}