Download the PHP package cable8mm/xeed without Composer
On this page you can find all versions of the php package cable8mm/xeed. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cable8mm/xeed
More information about cable8mm/xeed
Files in cable8mm/xeed
Informations about the package xeed
Xeed - Resources Generator for Laravel
νκΈ(Korean) π
The Xeed is to generate new model, seed, database seed, factory and migration files for Laravel based on data from the existing database table.
[!TIP] It can function as both
php artisan xeed:*
commands for Laravel andbin/console *
commands for Standalone, providing 100% identical functionality. Therefore, you can use it within your own Laravel project or as a standalone application.
We have provided the API Documentation on the web. For more information, please visit https://www.palgle.com/xeed/ β€οΈ
Features
- [x] Database testing is supported
- [x] Generate models for Laravel
- [x] Generate seed files for Laravel
- [x] Generate database seed files for Laravel
- [x] Generate factories for Laravel
- [x] Generate migrations for Laravel
- [x] Generate belongsTo and hasMany relationships functions for Laravel
- [x] Laravel multi & reserved columns supported
- [x] Laravel integration
- [x] MySQL, SQLite and PostgreSQL supported
Support & Tested
[!CAUTION] PostgreSQL support is in beta. If you encounter any issues, please report them via GitHub issues.
Preview
Laravel:
Standalone:
Installation
[!IMPORTANT] Edit the
.env
file to configure your own database. You can manually copy.env.example
to.env
whenever you need to.
Usage
Generate Models
Generate Seeders
Generate Faker Seeders
The Faker seeders are utilized without the factory()
method to generate seeds. This command was created to address the issue #61, providing insight into its purpose.
Generate DatabaseSeeder
Generate Factories
Generate Migrations
The generated files are stored in the same folder as your Laravel project. Please check the dist
folder.
Generate Relations
This command can only be used in Models where use HasFactory;
exists, all relations will be placed after it.
The generated relations are named using laravels convention. Some names may be duplicated
Helpful commands
If you are going to test this package yourself, then you would use the following commands to clean up generated files.
Formatting
Testing
It uses the built-in SQLite database, not your own database. It will never cause harm to your data. You don't need to worry about that.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
The below can help you contribute.
The Xeed has a built-in SQLite database, allowing you to contribute easily without needing your own database. Simply create a new file for testing purposes and utilize it.
And then,
Database seeds
For migrations and factories, when you need to execute tests for all database field types, utilize the following command.
Utilize migration files for all database field types by referring to the following location database/*.sql
these files are saved in the specified folder.
Use testorchestral/testbench
You can utilize testorchestral/testbench
to execute tests. When running Laravel commands, the generated files are saved in the vendor/orchestra/testbench-core/laravel/database
folder.
Credits
License
The Xeed project is open-sourced software licensed under the MIT license.
All versions of xeed with dependencies
cable8mm/array-flatten Version ^1.0
doctrine/inflector Version ^2.0
league/flysystem Version ^3.0
symfony/console Version ^6.0|^7.0
vlucas/phpdotenv Version ^5.0