1. Go to this page and download the library: Download exploring/status library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
exploring / status example snippets
$bundles = array(
....
new \Exploring\StatusBundle\ExploringStatusBundle(),
);
$manager = $this->get('exploring_status.manager');
$manager->success('Yey, you did it!');
$manager->warning('Ok, everything went ok, but there is something fishy going on here.');
$manager->error('Couldn\'t do it :(');
$manager = $this->get('exploring_status.manager');
// Get first status, if exists
// This returns object of `StatusObject` type
$status = $manager->first();
// Get all status messages
// This returns `array` of `StatusObject` objects
$all = $manager->all();
$manager = $this->get('exploring_status.manager');
// This message will go into `happiness` group
$manager->success('Yey, you did it!', 'happiness');
// This one goes into `Default`
$manager->warning('Ok, everything went ok, but there is something fishy going on here.');
// This one goes into `Fatal`
$manager->error('Couldn\'t do it :(', 'Fatal');
// Get first status from group `happiness`
// This returns object of `StatusObject` type
$status = $manager->first('happiness');
// Get all status messages from group `Fatal`
// This returns `array` of `StatusObject` objects
$all = $manager->all('Fatal');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.