PHP code example of jeroen-g / laravel-packager

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

    

jeroen-g / 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:tests
xml
<testsuite name="Packages">
    <directory suffix="Test.php">./tests/packages</directory>
</testsuite>
bash
php artisan packager:list
bash
php artisan packager:list --git