1. Go to this page and download the library: Download survos/ez-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/ */
survos / ez-bundle example snippets
use Survos\FieldBundle\Attribute\Field;
use Symfony\Component\Form\Attribute\FormField;
use Symfony\Component\Validator\Constraints as Assert;
#[Field(order: 10, sortable: true, filterable: true)]
#[FormField]
#[Assert\PositiveOrZero]
public int $stock = 0;
use Survos\EzBundle\Attribute\EzAdmin;
use Survos\EzBundle\Attribute\EzField;
use Survos\EzBundle\Attribute\Page;
#[EzAdmin(icon: 'fa-regular fa-image', defaultSort: ['year' => 'DESC'], indexMax: 12)]
class ForteObj
{
#[EzField(index: true, order: 1, filter: true)]
public ?int $year = null;
#[EzField(index: true, order: 2)]
public ?string $title = null;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.