PHP code example of neo4j / laravel-boost

1. Go to this page and download the library: Download neo4j/laravel-boost 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/ */

    

neo4j / laravel-boost example snippets

mermaid
flowchart LR
    A["🤖 AI assistant<br/>Cursor · Claude Code · …"] -- MCP --> B["Laravel Boost<br/>php artisan boost:mcp"]
    B --> C["Neo4j Laravel Boost<br/>Neo4j tools"]
    C -- Bolt --> D[("Neo4j")]
    E["Your Laravel app"] -- "php artisan container:graph" --> D
bash
php artisan neo4j-boost:setup
bash
php artisan neo4j-boost:start-neo4j
bash
php artisan neo4j-boost:cursor-config
bash
php artisan container:graph                 # export
php artisan container:graph --dry-run       # extract only, write nothing
php artisan container:graph --print-cypher  # show what gets written
bash
php artisan vendor:publish --tag=neo4j-boost-config
json
{
  "scripts": {
    "post-update-cmd": [
      "@php artisan neo4j-boost:setup --no-interaction"
    ]
  }
}
bash
php artisan neo4j-boost:doctor