Open Source • Laravel Package • MIT Licensed

Build APIs for
Humans & AI
Simultaneously

Transform your Laravel Eloquent models into JSON:API endpoints and MCP servers automatically.

Zero boilerplate. Pure results. Future-ready architecture.

install
Input
// 1. Create your repository
class PostRepository extends Repository
{
    public static string $model = Post::class;
}
// 2. Enable MCP for AI agents
Mcp::web('restify', RestifyServer::class);
Output
REST API
GET/api/restify/posts
POST/api/restify/posts
PATCH/api/restify/posts/{id}
DELETE/api/restify/posts/{id}
MCP TOOLS
🤖 posts-index-tool
🤖 posts-create-tool
🤖 posts-update-tool
🤖 posts-delete-tool
Zero Config
🚀
JSON:API
🤖
AI Ready
💎
Laravel Native
One Codebase, Infinite Possibilities

Write Once,
Deploy Everywhere

Transform your Laravel models into production-ready APIs and AI-compatible servers with zero configuration. The future of API development is here.

JSON:API Compliant

Automatically generates endpoints that follow JSON:API specifications with proper relationships, pagination, filtering, and sparse fieldsets.

{
  "data": {
    "id": "1",
    "type": "posts",
    "attributes": {
      "title": "Laravel Restify",
      "published_at": "2024-01-15"
    },
    "relationships": {
      "author": {
        "data": {"id": "1", "type": "users"}
      }
    }
  }
}
Policy-Based Auth

Built-in integration with Laravel's authorization system. Use policies for fine-grained access control on every endpoint.

class PostPolicy
{
    public function index(User $user)
    {
        return $user->can('view posts');
    }
    
    public function store(User $user)
    {
        return $user->hasRole('admin');
    }
}
Smart Filtering

Complex queries, sorting, filtering, and search across relationships without any extra configuration.

GET /api/restify/posts?
  filter[title]=Laravel&
  filter[status]=published&
  sort=-created_at&
  include=author,comments&
  page[size]=10
AI Agent Ready

Generate Model Context Protocol servers that allow AI agents to interact with your APIs using structured, type-safe tools.

// Enable MCP for AI agents
Mcp::web('restify', RestifyServer::class)
    ->middleware(['auth:sanctum'])
    ->name('mcp.restify');
Zero Configuration

Start building in seconds. Just create a repository class pointing to your model and you're ready.

class UserRepository extends Repository
{
    public static string $model = User::class;
    
    // That's it! Full CRUD API ready 🚀
}
Laravel Native

Built specifically for Laravel, leveraging Eloquent ORM, Service Container, and all Laravel conventions.

// Works with Laravel middleware
Route::middleware('auth:sanctum')
    ->group(function () {
        Route::restify();
    });
Join the Revolution

Built by Developers,
for Developers

Laravel Restify is open source and community-driven. Join thousands of developers who are building the future of API development.

Open Source

MIT licensed, completely free, and transparently developed on GitHub with full source code access.

Star on GitHub

Documentation

Comprehensive guides, tutorials, and API reference with real-world examples and best practices.

Read Docs

Discussions

Get help, share ideas, and connect with other developers in our active GitHub Discussions community.

Join Discussion
B

BinarCode

Proudly maintained by BinarCode, a team passionate about Laravel and modern web development.

Visit Website
1K+
GitHub Stars
50K+
Downloads
100+
Contributors
5+
Years Active

Built by Amazing Contributors

Laravel Restify is made possible by our incredible community of contributors who help make it better every day

binaryk
binaryk (940)
arthurkirkosa
arthurkirkosa (26)
CaReS0107
CaReS0107 (9)
dsindrilaru
dsindrilaru (6)
daniel-banciulea
daniel-banciulea (4)
cristijora
cristijora (2)
maicol07
maicol07 (2)
ttungbmt
ttungbmt (2)
gabrielpetrescu
gabrielpetrescu (2)
adam-code-labx
adam-code-labx (1)
alexstewartja
alexstewartja (1)
Nonines
Nonines (1)
Eighke
Eighke (1)
ManukMinasyan
ManukMinasyan (1)
msucevan
msucevan (1)
binaryk
binaryk (940)
arthurkirkosa
arthurkirkosa (26)
CaReS0107
CaReS0107 (9)
dsindrilaru
dsindrilaru (6)
daniel-banciulea
daniel-banciulea (4)
cristijora
cristijora (2)
maicol07
maicol07 (2)
ttungbmt
ttungbmt (2)
gabrielpetrescu
gabrielpetrescu (2)
adam-code-labx
adam-code-labx (1)
alexstewartja
alexstewartja (1)
Nonines
Nonines (1)
Eighke
Eighke (1)
ManukMinasyan
ManukMinasyan (1)
msucevan
msucevan (1)
Start Building Today

Ready to build
amazing APIs?

Install Laravel Restify today and transform your API development experience with elegant, powerful, and intuitive tools.

Install via Composer

Get started instantly with Composer package manager

$ composer require binaryk/laravel-restify
Clone from GitHub

Explore the source code and contribute

$ git clone git clone https://github.com/BinarCode/laravel-restify.git
R
Laravel Restify

Build JSON:API compliant REST APIs and MCP servers from your Laravel Eloquent models with zero configuration. Open source and community-driven.

Resources

© 2025 Laravel Restify. Open source under MIT License.

Made with by the BinarCode team