| Package Data | |
|---|---|
| Maintainer Username: | xmarkclx |
| Maintainer Contact: | xmarkclx@gmail.com (Mark Christian Lopez) |
| Package Create Date: | 2016-03-12 |
| Package Last Update: | 2016-03-13 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-14 03:03:37 |
| Package Statistics | |
|---|---|
| Total Downloads: | 14 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Automatically creates database based on few PHP documentation comments.
composer require xmarkclx/laravel-autodb
Given we have a comment on a class like so:
/**
* Class Example
*
* @db===
* @property string $avatar_url
* @property int $id #increments
* @db===
**
* @package App
*/
class Example implements AutogeneratedDBFields
{
We run:
php artisan autodb
What happens:
Well, we can, and it's not hard, but I don't have time for that yet.
If you want to help, you just need to make an assembler for that, just see how src/LaravelModelAssembler.php works and you can make a LaravelMigrationAssembler.php or something that assembles migrations instead of the database.
See docs/Architecture.md for how it is architected.