Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weierophinney/component-installer
(Prototype) composer scripts for auto-registering ZF3 components with the application
https://github.com/weierophinney/component-installer
Last synced: 3 days ago
JSON representation
(Prototype) composer scripts for auto-registering ZF3 components with the application
- Host: GitHub
- URL: https://github.com/weierophinney/component-installer
- Owner: weierophinney
- License: bsd-3-clause
- Created: 2015-12-11T23:36:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-17T18:56:07.000Z (about 9 years ago)
- Last Synced: 2024-11-06T20:49:48.584Z (about 2 months ago)
- Language: PHP
- Homepage: https://weierophinney.github.io/component-installer/
- Size: 3.54 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Component Installer for Zend Framework 3 Applications
This repository contains the class `Zend\ComponentInstaller\ComponentInstaller`,
which provides Composer event hooks for the events:- post-package-install
- post-package-uninstallIn order to utilize these, you will need to add the `ComponentInstaller`
classfile to your project, make it autoloadable, and then add its relevant
static methods as scripts for the above events.This package provides two ways for doing that: as a global composer utility, or
via a downloadable, self-updateable PHAR.## Via Composer Global Install
To install the utility via Composer:
```bash
$ composer global require zendframework/zend-component-installer
```Once installed, assuming that the Composer `bin/` directory is on your `$PATH`,
you can then execute the following:```bash
$ zend-component-installer install
```where `` is the path to a project in which you want to install the
component installer tools. If `` is omitted, the utility assumes the
current working directory should be used.> ### Note: Composer installation not yet supported!
>
> The above is a *planned* feature, but does not work currently, as the package
> is not yet registered with Packagist.## Via PHAR
The PHAR file is downloadable at:
- https://weierophinney.github.io/component-installer/zend-component-installer.phar
The public key for verifying the package is at:
- https://weierophinney.github.io/component-installer/zend-component-installer.phar.pubkey
You will need to download both files, to the same directory, for the utility to
work; additionally, the name of the key must not be changed.. Once downloaded,
make the the PHAR file executable.Once installed, you can then execute the following:
```bash
$ zend-component-installer.phar install
```where `` is the path to a project in which you want to install the
component installer tools. If `` is omitted, the utility assumes the
current working directory should be used.The PHAR file is self-updateable via the `self-update` command; this feature
requires PHP 5.6, however, due to SSL/TLS negotiation requirements.