GithubHelp home page GithubHelp logo

andersondrosa / laravel-vendor-package Goto Github PK

View Code? Open in Web Editor NEW

This project forked from askedio/laravel-vendor-package

0.0 2.0 0.0 208 KB

A Laravel 5 Vendor Package Example

License: MIT License

PHP 98.71% HTML 1.29%

laravel-vendor-package's Introduction

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

Use this package to help develop new packages to share among your projects -- or the world.

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:

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

laravel-vendor-package's People

Contributors

gcphost avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.