1. Go to this page and download the library: Download decodelabs/overpass 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/ */
decodelabs / overpass example snippets
use DecodeLabs\Overpass\Project;
$project = new Project('path/to/project/');
use DecodeLabs\Overpass;
echo $project->rootDir; // Parent or current dir containing package.json
echo $project->packageFile; // Location of package.json
$project->run('myfile.js'); // node myfile.js
$project->runScript('my-script'); // npm run my-script
$project->runExecutable('vite', 'build'); // vite build
$project->runPackage('create-react-app'); // npx create-react-app
$project->install('package1', 'package2'); // npm install package1 package2
$project->installDev('package1', 'package2'); // npm install package1 package2 --save-dev