phppro / supervision
PHPPRO Supervision
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 1 520
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
Requires
- nelmio/api-doc-bundle: 2.*
- sensio/framework-extra-bundle: ~3.0,>=3.0.2
- symfony/config: 2.*|3.*
- symfony/dependency-injection: 2.*|3.*
- symfony/http-foundation: 2.*|3.*
- symfony/http-kernel: 2.*|3.*
Requires (Dev)
This package is not auto-updated.
Last update: 2020-02-06 16:41:25 UTC
README
This repository contains the PHP Supervision and Symfony 2 Supervision Bundle that allows you to add supervision feature to your application.
Usage
Symfony 2 integration (Supervision Bundle)
This version of the bundle requires Symfony 2.7+.
Installation
Installation is a quick 3 step process:
- Download phppro/supervision using composer
- Enable the Bundle
- Configure the SupervisionBundle
Step 1: Download phppro/supervision using composer
Add phppro/supervision dependency to your composer.json :
# composer.json { "require": { "phppro/supervision": "1.*" }, ... }
Then update:
$ php composer.phar update phppro/supervision
Composer will install the bundle to your project's vendor/phppro/supervision
directory and additional required
packages.
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Phppro\Supervision\SupervisionBundle(), ); }
Step 3: Configure the routing
# app/routing.yml supervision: resource: "@SupervisionBundle/Controller/" type: annotation
Step 4: Configure the SupervisionBundle
# app/config/config.yml supervision: providers: - {name: "symfony", provider: "provider_symfony"}
Next Steps
Contact the phppro dev team for further information.