1. Go to this page and download the library: Download williamespindola/field 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/ */
williamespindola / field example snippets
use WilliamEspindola\Field\Storage\ORM\Doctrine;
use WilliamEspindola\Field\Repository\FieldRepository;
$doctrineStorage = new Doctrine(/** doctrine setup */); // you can uss orther ORM as you want
$repository = new FieldRepository($doctrineStorage);
$repository->findAll()
bash
php vendor/bin/field create Language en_EN English
php vendor/bin/field create Collection header Header en_EN
php vendor/bin/field create Field about "About text" en_EN html
php vendor/bin/field create Field meta-keys Metakeys en_EN text header
php vendor/bin/field create Field contact Contact en_EN text
php vendor/bin/field create Option Girl contact en_EN
php vendor/bin/field create Option Boy contact en_EN
bash
php vendor/bin/field
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.