PHP Classes

File: bin/pomposer

Recommend this page to a friend!
  Packages of Hichem Taboukouyout   pomposer   bin/pomposer   Download  
File: bin/pomposer
Role: Example script
Content type: text/plain
Description: Example script
Class: pomposer
Install packages shares storage between projects
Author: By
Last change:
Date: Yesterday
Size: 658 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php

use HichemTabTech\Pomposer\Console\InstallCommand;

if (
file_exists(__DIR__.'/../../../autoload.php')) {
   
/** @noinspection PhpIncludeInspection */
   
require __DIR__.'/../../../autoload.php';
} else {
    require
__DIR__.'/../vendor/autoload.php';
}

// Define our own version and the Laravel Installer version we aim to match.
$pomposerVersion = '0.1.0';

// Compose the displayed version string.
$displayVersion = sprintf('%s', $pomposerVersion);

$app = new Symfony\Component\Console\Application('Pomposer', $displayVersion);
$app->add(new InstallCommand);

/** @noinspection PhpUnhandledExceptionInspection */
$app->run();