PHP code example of andreapollastri / cipi-agent

1. Go to this page and download the library: Download andreapollastri/cipi-agent 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/ */

    

andreapollastri / cipi-agent example snippets

bash
php artisan vendor:publish --tag=cipi-agent-config
bash
php artisan cipi:status
bash
php artisan cipi:service mcp --enable
php artisan cipi:generate-token mcp
php artisan cipi:service anonymize --enable
php artisan cipi:generate-token anonymize
bash
php artisan cipi:generate-token health
curl -H "Authorization: Bearer $TOKEN" https://yourdomain.com/cipi/health
bash
php artisan cipi:service mcp --enable
php artisan cipi:generate-token mcp
php artisan cipi:mcp          # endpoint, tools and ready-to-paste client configuration
bash
php artisan cipi:service anonymize --enable
php artisan cipi:generate-token anonymize
php artisan cipi:init-anonymize --scan      # propose a config from the live schema
php artisan cipi:anonymize-audit            # check it against the database
bash
php artisan cipi:anonymize                                   # server config → storage/cipi/anonymized_<timestamp>.sql
php artisan cipi:anonymize --gzip                            # .sql.gz
php artisan cipi:anonymize /path/config.json /path/out.sql   # explicit paths (1.x signature)
php artisan cipi:anonymize --check                           # validate + audit, no dump