PHP code example of kallbuloso / laravel-packager

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

    

kallbuloso / laravel-packager example snippets


kallbuloso\Packager\PackagerServiceProvider::class,

if ($this->app->environment('local')) {
    $this->app->register('kallbuloso\Packager\PackagerServiceProvider');
}
bash
$ php artisan vendor:publish --provider="kallbuloso\Packager\PackagerServiceProvider"
bash
$ php artisan packager:new MyVendor MyPackage
 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 MyPackage
$ php artisan packager:git https://github.com/author/repository MyVendor MyPackage
bash
$ php artisan packager:tests
xml
<testsuite name="Packages">
    <directory suffix="Test.php">./tests/packages</directory>
</testsuite>
bash
$ php artisan packager:tests MyVendor MyPackage
bash
$ php artisan packager:list
bash
$ php artisan packager:remove MyVendor MyPackage
bash
$ php artisan packager:publish MyVendor MyPackage https://github.com/myvendor/mypackage
bash
$ php artisan packager:check MyVendor MyPackage