rajaishtiaq6 liked a comment+100 XP
3mos ago
rajaishtiaq6 liked a comment+100 XP
4mos ago
Hey everyone,
I just released a new open-source package called Laravel ReverseKit.
It takes a JSON structure and generates a complete Laravel backend from it — without using AI.
This means you can describe your output once, and it builds the whole backend around that structure.
What it generates
- Models
- Migrations
- Controllers
- API Resources
- Form Requests
- Policies
- Factories
- Seeders
- Feature tests
- API routes
All following Laravel’s default conventions for 10+, 11+ and 12+.
Example
If your JSON looks like this:
{
"user": {
"id": 1,
"name": "John",
"email": "[email protected]",
"posts": [
{
"id": 1,
"title": "First Post",
"published": true
}
]
}
}
Run:
php artisan reverse:generate input.json
This generates the full backend structure, including relationships and inferred migration types.
Input sources supported
- JSON file
- JSON string
- Live API URL
- OpenAPI / Swagger
- Postman collections
- Existing database tables
- Interactive CLI mode
Why I built it
Most generators expect you to start with models and then manually create everything else. I wanted to flip the process: define data once and let the package reverse-engineer the backend for you.
Package
Packagist:
shaqi-labs/laravel-reversekit
GitHub:
https://github.com/shaqi-labs/laravel-reversekit
Happy to hear feedback or suggestions for improvements. If you think a generator or integration is missing, let me know — would love ideas from the community.
rajaishtiaq6 started a new conversation+100 XP
4mos ago
Hey everyone,
I just released a new open-source package called Laravel ReverseKit.
It takes a JSON structure and generates a complete Laravel backend from it — without using AI.
This means you can describe your output once, and it builds the whole backend around that structure.
What it generates
- Models
- Migrations
- Controllers
- API Resources
- Form Requests
- Policies
- Factories
- Seeders
- Feature tests
- API routes
All following Laravel’s default conventions for 10+, 11+ and 12+.
Example
If your JSON looks like this:
{
"user": {
"id": 1,
"name": "John",
"email": "[email protected]",
"posts": [
{
"id": 1,
"title": "First Post",
"published": true
}
]
}
}
Run:
php artisan reverse:generate input.json
This generates the full backend structure, including relationships and inferred migration types.
Input sources supported
- JSON file
- JSON string
- Live API URL
- OpenAPI / Swagger
- Postman collections
- Existing database tables
- Interactive CLI mode
Why I built it
Most generators expect you to start with models and then manually create everything else. I wanted to flip the process: define data once and let the package reverse-engineer the backend for you.
Package
Packagist:
shaqi-labs/laravel-reversekit
GitHub:
https://github.com/shaqi-labs/laravel-reversekit
Happy to hear feedback or suggestions for improvements. If you think a generator or integration is missing, let me know — would love ideas from the community.