Download the PHP package terion/package-installer without Composer
On this page you can find all versions of the php package terion/package-installer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package package-installer
Ultimate Package Installer
This package provides a cli interface for fast and easy package install (any package, not only laravel-specific).
Example:
Why?
How do you install a package?
You go to github or packagist or google, search for desired package, see it's full name and available versions, then require it via composer's cli or manually patch composer.json
, then you search in readme what service providers and facades this package provide and manually copypast them to config, then publish configs and assets manually... That's annoying! Machine must do this.
And here is the solution.
Installation
-
Require package:
- Add to
app/config/app.php
toproviders
array:
How to use
1. Search for a package or install a known one:
Search for a package on composer. This will output list of found packages with numeric select. Default selection is the fisrt package in list.
This will install yaap/theme package. If there is no such package it will fallback to search.
2. Select version
When package selected you will be promted to choose a version from list of availables by number.
Default selection is the latest stable version if present. If no stable present — then dev-master
is selected.
3. PROFIT!
Installer will now update composer.json
, install the package, search for ServiceProviders and Facades, patch app/config/app.php
and publish package configs and assets. It also respects Ryan's package installer provides.json
but still will make the work without it.
What problems can you face with
The only problem that I've discovered is that some packages contain facades, that shouldn't be included in app config, but they do and this can break application and should be manually fixed (but this is very easy).
As an example — orchestra/support
contains about 20 facades and they collide with Laravel facades.
Package Installer handles this safely by commenting colliding aliases
so in such case you should manually remove redundant aliases and uncomment old ones.
TODO:
- Fully automatic (silent) mode
- Passthrough parameters to composer cli
- Deal with environment-specific packages
- Unittesting
All versions of package-installer with dependencies
illuminate/support Version 4.2.*
illuminate/console Version 4.2.*
illuminate/filesystem Version 4.2.*
illuminate/config Version 4.2.*
knplabs/packagist-api Version 1.1
nesbot/carbon Version 1.*