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.
class PostRepository extends Repository
{
public static string $model = Post::class;
}Mcp::web('restify', RestifyServer::class); 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.
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"}
}
}
}
}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');
}
}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]=10Generate 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');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 🚀
}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();
}); 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 GitHubDocumentation
Comprehensive guides, tutorials, and API reference with real-world examples and best practices.
Read DocsDiscussions
Get help, share ideas, and connect with other developers in our active GitHub Discussions community.
Join DiscussionBinarCode
Proudly maintained by BinarCode, a team passionate about Laravel and modern web development.
Visit WebsiteBuilt by Amazing Contributors
Laravel Restify is made possible by our incredible community of contributors who help make it better every day
Ready to build
amazing APIs?
Install Laravel Restify today and transform your API development experience with elegant, powerful, and intuitive tools.
Get started instantly with Composer package manager
Explore the source code and contribute