PHP code example of mothership-ec / up
1. Go to this page and download the library: Download mothership-ec/up 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/ */
mothership-ec / up example snippets
use Mothership\Up\Up;
$up = new Up;
// Update your project from the current working directory
$up->update();
// Update your project from a different directory
$up->setBaseDir('/path/to/project')->update();
// Synchronise your project with the `composer.lock` file
$up->install();
// Synchronise your project from a `composer.lock` file in a different directory
$up->setBaseDir('/path/to/project')->install();
// Create a new project from a Composer package
$up->createProject('mothership-ec/mothership');
// Create a new project from a Composer package in a different directory
$up->setBaseDir('/path/to/project')->createProject('mothership-ec/mothership');