askedio / laravel-vendor-package
A Vendor Package Example
Installs: 125
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 1
Forks: 3
Open Issues: 0
pkg:composer/askedio/laravel-vendor-package
Requires
- php: >=5.5.9
 - laravel/framework: 5.*
 
Requires (Dev)
- fzaninotto/faker: ~1.4
 - laravel/laravel: 5.*
 - mockery/mockery: 0.9.*
 - phpunit/phpunit: ~5.0
 - symfony/css-selector: 3.1.*
 - symfony/dom-crawler: 3.1.*
 
This package is not auto-updated.
Last update: 2020-01-24 16:07:30 UTC
README
An example on how-to create a vendor package for Composer
"Packages are the primary way of adding functionality to Laravel. Packages might be anything from a great way to work with dates like Carbon, or an entire BDD testing framework like Behat." https://laravel.com/docs/master/packages
Use this package to help develop new packages to share among your projects -- or the world.
Installation
- Clone this repo.
 - Rename the following to match your repository & package name:
- namespace: 
Askedio\LaravelVendorPackage - composer package name: 
askedio/laravel-vendor-package - resource namespace: 
LaravelVendorPackage 
 - namespace: 
 - Add to https://packagist.org.
 - Using your details, install with commands below.
 
Installation
Install a fresh copy of Laravel then require the package:
composer create-project --prefer-dist laravel/laravel blog
cd blog
composer require askedio/laravel-vendor-package:dev-master
Register with config/app.php
Register the service providers to enable the package:
Askedio\LaravelVendorPackage\Providers\AppServiceProvider::class,
Autoload it:
composer dumpautoload
Test with Laravel
php artisan serv
Browse to http://localhost:8000/dashboard
Test the Package
In the packages repository folder:
composer install
vendor/bin/phpunit