1. Go to this page and download the library: Download glugox/model-meta 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/ */
glugox / model-meta example snippets
use Glugox\ModelMeta\Fields\Text;
use Glugox\ModelMeta\Fields\Email;
use Glugox\ModelMeta\Fields\Enum;
use Glugox\ModelMeta\Fields\Decimal;
use Glugox\ModelMeta\FieldType;
class UserMeta
{
public function fields(): array
{
return [
Text::make('first_name')->
use Glugox\ModelMeta\Fields\Text;
$field = Text::make('username')
->est')
->sortable()
->unique('users', 'username');
use Dummies\UserMeta;
use Glugox\ModelMeta\FieldType;
it('defines UserMeta fields', function () {
$meta = new UserMeta();
$fields = $meta->fields();
expect($fields)->toHaveCount(5)
->and($fields[0]->type)->toBe(FieldType::STRING)
->and($fields[0]->
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.