Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rajaishtiaq6's avatar

Released a new package: Laravel ReverseKit — Generate full backend from JSON

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.

1 like
1 reply
jlrdw's avatar

Thanks for sharing this with the community.

1 like

Please or to participate in this conversation.