Download the PHP package liar88828/laravel-schema-attributes without Composer

On this page you can find all versions of the php package liar88828/laravel-schema-attributes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-schema-attributes

Laravel Schema Attributes

Latest Version on Packagist PHP Version Laravel Version

PHP 8 attribute-driven schema compiler for Laravel. One schema class drives everything — migrations, models, factories, controllers, and tests with no duplication.

Reverse Engineering Existing Migrations

Already have a Laravel project with migrations? Import them as schemas with one command:

Example — given this migration:

Generated OrderSchema.php:

After scanning, review the generated schemas and uncomment/add #[Fillable], #[Required], #[Hidden], #[Cast] as needed.

Concept

Then run one command to generate everything:

This generates:

Installation

Laravel auto-discovers the service provider. No manual registration needed.

Artisan Commands

Command Description
schema:make ArticleSchema Create a new schema class
schema:scan Reverse-engineer existing migrations → schema classes
schema:migrate ArticleSchema Generate migration
schema:model ArticleSchema Generate Eloquent model
schema:relations ArticleSchema Generate relation methods
schema:factory ArticleSchema Generate factory
schema:service ArticleSchema Generate Service layer class
schema:controller ArticleSchema Generate API controller
schema:test ArticleSchema Generate PHPUnit test
schema:refresh ArticleSchema Generate all of the above

Available Attributes

Migration

#[Table] #[Column] #[PrimaryKey] #[ForeignKey] #[ForeignSchema] #[HasOne] #[HasMany] #[BelongsTo] #[BelongsToMany]

Model

#[EloquentModel] #[Fillable] #[Hidden] #[Cast] #[Appended] #[UsesSchema]

Validation

#[Required] #[Email] #[Min] #[Max] #[In] #[Unique] #[Uuid] #[Confirmed] #[Regex] #[Numeric]

Auth Model Example

HasSchema Trait

Adding use HasSchema to your model gives you:

Authors & Credits

This package was entirely created by AI.

Role AI
Code & Architecture Claude (Anthropic)
Helper & Consultation ChatGPT (OpenAI)
Human Supervisor liar88828

💡 This is an experiment in AI-driven open source development. Every line of code, architecture decision, bug fix, and this README was written by AI assistants guided by a human developer.

spatie/laravel-route-attributes is a lightweight package (~50KB) that only depends on illuminate/routing which Laravel already includes. If your project already has any Spatie package installed, there is zero additional cost.

License

MIT — see LICENSE.


All versions of laravel-schema-attributes with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/console Version ^11.0|^12.0
illuminate/filesystem Version ^11.0|^12.0
spatie/laravel-route-attributes Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package liar88828/laravel-schema-attributes contains the following files

Loading the files please wait ...