PHP code example of mpandar / laravel-packager

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

    

mpandar / laravel-packager example snippets


JeroenG\Packager\PackagerServiceProvider::class,

if ($this->app->environment('local')) {
    $this->app->register('JeroenG\Packager\PackagerServiceProvider');
}
bash
$ php artisan vendor:publish --provider="JeroenG\Packager\PackagerServiceProvider"
 bash
$ php artisan packager:get https://github.com/author/repository
$ php artisan packager:git https://github.com/author/repository
bash
$ php artisan packager:get https://github.com/author/repository --branch=develop
$ php artisan packager:get https://github.com/author/repository myvendor my-package
$ php artisan packager:git https://github.com/author/repository myvendor my-package
bash
$ php artisan packager:tests
xml
<testsuite name="Packages">
    <directory suffix="Test.php">./tests/packages</directory>
</testsuite>
bash
$ php artisan packager:list