Download the PHP package glugox/model-meta without Composer
On this page you can find all versions of the php package glugox/model-meta. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download glugox/model-meta
More information about glugox/model-meta
Files in glugox/model-meta
Download glugox/model-meta
More information about glugox/model-meta
Files in glugox/model-meta
Vendor glugox
Package model-meta
Short Description Laravel package for defining model fields, validation, relations, etc.
License MIT
Package model-meta
Short Description Laravel package for defining model fields, validation, relations, etc.
License MIT
Please rate this library. Is it a good library?
Informations about the package model-meta
ModelMeta
ModelMeta is a PHP package to define metadata for models, including fields, types, validation rules, and relationships.
Features
- Define model fields with type-safe classes (
TextField,EmailField,EnumField, etc.) - Fluent API for setting validation rules,
nullable,required,default,sortable,uniqueand more - Supports numeric ranges (
min,max) and precision (step) for decimal/float fields - Explicit enum values support
- Controls for visibility in forms and tables (
showInForm,showInTable) - Readonly and hidden field flags
- Integration-ready for custom admin panels or CRUD generators
- Ready for automated tests with Pest
Installation
Basic Usage
Fluent API Example
Field Types
Supported field types include:
- Basic:
ID,String,Text,LongText,MediumText,Char - Numbers:
Integer,SmallInteger,TinyInteger,BigInteger,Decimal,Float,Double - Special:
Email,Password,Phone,Username,Slug,URL,UUID,Token,Secret - Date/Time:
Date,DateTime,Time,Timestamp,Year - Boolean / Binary:
Boolean,Binary - File:
File,Image - JSON:
JSON,JSONB - Enumeration:
Enum(with values)
Relations
Currently supports:
BelongsToHasOneHasManyBelongsToMany
Define relations via dedicated relation classes when building meta for entities.
Testing
Pest is recommended:
Example test:
Contributing
Contributions are welcome! Please open issues or pull requests.
License
MIT License. See LICENSE file for details.
All versions of model-meta with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/http Version ^12.0
illuminate/routing Version ^12.0
illuminate/support Version ^12.0
illuminate/http Version ^12.0
illuminate/routing Version ^12.0
illuminate/support Version ^12.0
The package glugox/model-meta contains the following files
Loading the files please wait ...