PHP code example of digitaldev-lx / laravel-process-map
1. Go to this page and download the library: Download digitaldev-lx/laravel-process-map library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
digitaldev-lx / laravel-process-map example snippets
use Laravel\Mcp\Facades\Mcp;
use DigitaldevLx\LaravelProcessMap\Mcp\Servers\ProcessMapServer;
// STDIO (Claude Code's default transport)
Mcp::local('process-map', ProcessMapServer::class);
// or HTTP (with throttling middleware of your choice)
// Mcp::web('/mcp/process-map', ProcessMapServer::class)->middleware('throttle:mcp');
bash
# 1. Show the install instructions
php artisan process-map:mcp-install
# 2. Switch the flag in your .env
PROCESS_MAP_MCP_ENABLED=true
# 3. Make sure routes/ai.php exists (laravel/mcp publishes it)
php artisan vendor:publish --tag=ai-routes
# 4. Register the server in routes/ai.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.