Giter Site home page Giter Site logo

package-installer's Introduction

Laravel 4 Package Installer

Build Status

This package allows for quick and easy installation of supported Laravel 4 packages. This packages installs packages and adds any necessary ServiceProviders and Aliases.

Installing Package Installer

This package installer is available through packagist and composer.

Add "rtablada/package-installer": "dev-master" to your composer.json or run composer require rtablada/package-installer.

Then you have to add "Rtablada\PackageInstaller\PackageInstallerServiceProvider" to your list of providers in your app/config/app.php. Luckily, this will be one of the last package Aliases you will ever have to add manually!

Using this installer

This package allows for supported packages to be installed by running php artisan package:install vendor/name. For instance, to install Traffic Signs(a simple error page handler) you can run php artisan package:install rtablada/traffic-signs.

Developing packages for Laravel 4 Package Installer

To allow your package to be installed by Laravel 4 Package Installer, just add a provides.json to the root of your package.

The format for provides.json looks like this:

{
  "providers": [
    "Illuminate\Html\HtmlServiceProvider"
  ],
  "aliases": [
    {
      "alias": "HTML",
      "facade": "Illuminate\Support\Facades\HTML"
    }
  ]
}

** Note that either valid JSON or invalid JSON can be written to add to the readability of the provides.json this is to increase human readability while allowing developers to write whichever way they prefer.

package-installer's People

Contributors

caouecs avatar felixkiss avatar rtablada avatar

Watchers

 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.