binaryk / laravel-restify
Laravel REST API helpers
Installs: 367 835
Dependents: 0
Suggesters: 0
Security: 0
Stars: 626
Watchers: 10
Forks: 57
Open Issues: 2
Requires
- php: ^8.2
- illuminate/contracts: ^11.0|^12.0
- laravel/pint: ^1.0
- spatie/laravel-data: ^4.4
- spatie/laravel-package-tools: ^1.12
- spatie/once: ^3.0
Requires (Dev)
- brianium/paratest: ^7.0.6
- doctrine/dbal: ^3.0|^4.0
- nunomaduro/collision: ^8.1
- openai-php/laravel: ^0.8.1|^0.11
- orchestra/testbench: ^9.0|^10.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0|^2.0
- phpstan/phpstan-phpunit: ^1.0|^2.0
- phpunit/phpunit: ^10.0|^11.0|^12.0
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^6.0@dev
- 10.x-dev
- 9.x-dev
- 9.11.3
- 9.11.2
- 9.11.1
- 9.11.0
- 9.10.3
- 9.10.2
- 9.10.1
- 9.10.0
- 9.9.1
- 9.9.0
- 9.8.0
- 9.7.1
- 9.7.0
- 9.6.2
- 9.6.1
- 9.6.0
- 9.5.1
- 9.5.0
- 9.4.0.x-dev
- 9.3.1
- 9.3.0
- 9.2.0
- 9.1.0
- 9.0.0
- 8.x-dev
- 8.4.0
- 8.3.2
- 8.3.1
- 8.3.0
- 8.2.0
- 8.1.5
- 8.1.4.x-dev
- 8.1.3
- 8.1.2.x-dev
- 8.1.2
- 8.1.1
- 8.1.0
- 8.0.1
- 8.0.0
- 7.x-dev
- 7.11.0
- 7.10.11
- 7.10.4
- 7.10.3
- 7.10.2
- 7.10.1
- 7.10.0
- 7.9.0
- 7.8.0
- 7.7.2
- 7.7.1
- 7.7.0
- 7.6.3
- 7.6.2
- 7.6.1
- 7.6.0
- 7.5.4
- 7.5.3
- 7.5.2
- 7.5.1
- 7.5.0
- 7.4.0
- 7.3.1
- 7.3.0
- 7.2.1
- 7.2.0
- 7.1.0
- 7.0.0
- 6.x-dev
- 6.12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2.0.0
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- dev-tools/profile
- dev-feat/mcp-support
- dev-fix/revert-index-method
- dev-fix/retrieve-query-from-input
- dev-fix/uppercase-pgsql
- dev-fix/index-array
- dev-fix/join-search
- dev-query-optimizations
- dev-ai-solutions
- dev-fix-matches2
- dev-fix-matches
- dev-fix/login-user
- dev-fix/adding-related-helpers
- dev-fix/fix-default-callback
- dev-feat/setup-laravel-12
- dev-laravel-12
- dev-fix-loading-nested
- dev-larastan-support
- dev-fixes
- dev-improvement
- dev-master
- dev-routes-fixes
- dev-association-fix
- dev-recursive-related
- dev-related-fix
- dev-custom-serializer
- dev-elastic-fix
- dev-incase-search
- dev-stuff
- dev-getters
- dev-routes-api
- dev-sort-has-one
- dev-sync-5
- dev-docs-test-vuepress
- dev-policies
- dev-standaone_actions
- dev-match-array-date
- dev-match-feature
This package is auto-updated.
Last update: 2025-08-24 12:06:40 UTC
README
The first fully customizable Laravel JSON:API builder with MCP and GraphQL support. "CRUD" and protect your resources with 0 (zero) extra line of code.

⚡ Laravel Restify Templates - Save Weeks of Development
Looking to 10x your API development speed? Check out our production-ready API templates at RestifyTemplates.com. Get complete authentication, roles & permissions, team management, and more - all built on Laravel Restify. Zero configuration needed. Deploy in minutes instead of weeks.
Installation
You can install the package via composer:
composer require binaryk/laravel-restify
Playground
You can find a playground in the Restify Demo GitHub repository.
Videos
If you are a visual learner, checkout our video course for the Laravel Restify.
Quick start
Setup package:
php artisan restify:setup
Generate repository:
php artisan restify:repository Dream --all
Now you have the REST CRUD over dreams and this beautiful repository:
Now you can go into Postman and check it out:
GET: http://laravel.test/api/restify/dreams
POST: http://laravel.test/api/restify/dreams
GET: http://laravel.test/api/restify/dreams/1
PUT: http://laravel.test/api/restify/dreams/1
DELETE: http://laravel.test/api/restify/dreams/1
🤖 AI-Powered Development with MCP
Transform your existing Laravel Restify API into an MCP-enabled powerhouse in minutes! Laravel Restify's Model Context Protocol integration allows AI agents to interact directly with your API resources through structured tool interfaces.
🔥 Transform Your API in Minutes! Add one trait to your Repository class and register one route - that's it! Your entire API becomes AI-agent accessible with full security and authorization intact.
Quick Setup (2 steps):
- Add the trait to your Repository:
use Binaryk\LaravelRestify\MCP\Concerns\HasMcpTools; class PostRepository extends Repository { use HasMcpTools; // ✨ This enables MCP for this resource }
- Register the MCP server in
routes/ai.php
:
use Laravel\Mcp\Facades\Mcp; use Binaryk\LaravelRestify\MCP\RestifyServer; Mcp::web('restify', RestifyServer::class)->middleware(['auth:sanctum']);
That's it! Your API is now AI-agent ready with automatic tool generation for CRUD operations, actions, and getters.
Restify Boost
Laravel Restify provides an MCP (Model Context Protocol) server designed for developers working with Laravel Restify APIs. This server enables AI agents to access documentation, create repositories, actions, and getters through structured tools.
Repository: https://github.com/BinarCode/laravel-restify-boost
Features
- Documentation Access: Query Laravel Restify documentation directly
- Repository Generation: Create new repositories with proper structure
- Action Creation: Generate custom actions for your API resources
- Getter Development: Build custom getters for data retrieval
- Code Examples: Get contextual code examples and best practices
Installation
composer require --dev binarcode/laravel-restify-boost php artisan restify-boost:install
Usage with AI Agents
Configure your AI agent (Claude Desktop, etc.) to use the MCP server for enhanced Laravel Restify development assistance.
Usage
See the official documentation.
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email eduard.lupacescu@binarcode.com or message me on twitter instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.