2017 © Pedro Peláez
 

library laravel-require

Add a package with composer, and automatically registers the service provider.

image

patinthehat/laravel-require

Add a package with composer, and automatically registers the service provider.

  • Monday, April 24, 2017
  • by patinthehat
  • Repository
  • 3 Watchers
  • 8 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

## laravel-require

This Laravel 5 package provides a require:package artisan command, which first installs a package via composer, then attempts to automatically register its service provider(s) and facades., (*1)

This makes it even easier to install a Laravel package!, (*2)

Written and tested with Laravel 5.4., (*3)


Installation

You may install this package using composer: composer require patinthehat/laravel-require, (*4)

Once it's installed, you must add the service provider to the 'providers' section in your config/app.php file:, (*5)

LaravelRequire\LaravelRequireServiceProvider::class,

You will now have a require:package {package-name} command available in artisan. It will attempt to automatically register the service provider for a package after installation, and will let you know if it is unable to do so. If this happens, you will have to register the package manually., (*6)


Requirements

In order for laravel-require to work properly, you must either have composer.phar in your project's base directory or have the composer command available in your environment's PATH variable., (*7)


Example Usage

$ php artisan require:package laracasts/flash

This installs and registers the flash package from laracasts., (*8)

$ php artisan require:package laracasts/flash --register-only

This will skip running the composer require command entirely, and only attempt to register the package's Service Providers and Facades., (*9)


How it works

laravel-require first creates a list of files in the package that might contain a Service Provider or Facade. It first attempts to locate Service Providers/Facades through matching filenames. If this fails, the contents of the files are scanned to locate the Service Providers and Facades., (*10)


License

This package is open-source software, released under the MIT license., (*11)

The Versions

24/04 2017

dev-master

9999999-dev https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

23/04 2017

2.2.3

2.2.3.0 https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

23/04 2017

2.3.0

2.3.0.0 https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

23/04 2017

2.2.2

2.2.2.0 https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

22/04 2017

2.2.1

2.2.1.0 https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

22/04 2017

2.2.0

2.2.0.0 https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

21/04 2017

2.1.1

2.1.1.0 https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

13/04 2017

2.1.0

2.1.0.0 https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

12/04 2017

2.0.2

2.0.2.0 https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

12/04 2017

2.0.0

2.0.0.0 https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

10/04 2017

1.2.0

1.2.0.0 https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

09/04 2017

1.1.0

1.1.0.0 https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

09/04 2017

1.0.0

1.0.0.0 https://permafrost-dev.com/laravel-require/

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package

09/04 2017

0.1.0

0.1.0.0 https://www.permafrost-dev.com

Add a package with composer, and automatically registers the service provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrick Organ

laravel framework composer automation laravel-package