2017 © Pedro Peláez
 

library laravel-vendor-package

A Vendor Package Example

image

askedio/laravel-vendor-package

A Vendor Package Example

  • Monday, November 7, 2016
  • by gcphost
  • Repository
  • 1 Watchers
  • 7 Stars
  • 71 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

Laravel 5.3 Vendor Package Example

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, (*1)

Use this package to help develop new packages to share among your projects -- or the world., (*2)

Installation

  1. Clone this repo.
  2. Rename the following to match your repository & package name:
    • namespace: Askedio\LaravelVendorPackage
    • composer package name: askedio/laravel-vendor-package
    • resource namespace: LaravelVendorPackage
  3. Add to https://packagist.org.
  4. Using your details, install with commands below.

Installation

Install a fresh copy of Laravel then require the package:, (*3)

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:, (*4)

Askedio\LaravelVendorPackage\Providers\AppServiceProvider::class,

Autoload it:, (*5)

composer dumpautoload

Test with Laravel

php artisan serv

Browse to http://localhost:8000/dashboard, (*6)

Test the Package

In the packages repository folder:, (*7)

composer install
vendor/bin/phpunit

The Versions

07/11 2016