PHP code example of milpa / resolver

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

    

milpa / resolver example snippets


use Milpa\Resolver\Contracts\ArchitectureResolver;
use Milpa\Resolver\Input\ResolutionInput;
use Milpa\Resolver\Manifest\HostProfile;
use Milpa\Resolver\Manifest\VersionManifest;
use Milpa\Resolver\Report\ResolutionStatus;

$input = new ResolutionInput(
    hostProfile: new HostProfile(
        name: 'agent-ready',
        version: '2026.07',
        lities' => ['provides' => ['command.provider'], 'eterministic, agent-readable shape

use Milpa\Resolver\Advisor\MigrationAdvisor;

$plan = (new MigrationAdvisor())->advise($report, $driftErrors, $hostProfile);
$plan->toArray();   // the frozen plan shape below