https://github.com/8p/assistbundle
Small Improvements/Helpers for Symfony
https://github.com/8p/assistbundle
Last synced: over 1 year ago
JSON representation
Small Improvements/Helpers for Symfony
- Host: GitHub
- URL: https://github.com/8p/assistbundle
- Owner: 8p
- License: mit
- Created: 2013-11-06T13:07:14.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-04-19T17:52:56.000Z (over 11 years ago)
- Last Synced: 2025-03-29T13:01:30.753Z (over 1 year ago)
- Language: PHP
- Size: 168 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Symfony AssistBundle [](https://packagist.org/packages/eightpoints/assist-bundle) [](https://packagist.org/packages/eightpoints/assist-bundle)
====================
[](http://knpbundles.com/8p/AssistBundle)
[](https://insight.sensiolabs.com/projects/b10eced0-9f76-4098-b43e-d4b74ef28174)
Small Improvements/Helpers for Symfony.
Requirements
------------
- PHP 5.3.3 or above (at least 5.3.4 recommended to avoid potential bugs)
Installation
------------
Using composer ([Packagist][1]):
``` json
{
"require": {
"eightpoints/assist-bundle": "dev-master"
}
}
```
Usage
-----
Load bundle in AppKernel.php:
``` php
new EightPoints\Bundle\AssistBundle\AssistBundle()
```
Helpers
=======
CommandTimestampOutput
----------------------
To use a timestamp for each printed line on your command just inject the CommandTimestampOutput into your console application.
app/console
``` php
use EightPoints\Bundle\AssistBundle\Console\Output\ConsoleTimestampOutput;
$output = new ConsoleTimestampOutput();
...
$application->run($input, $output);
```
Example output:
```
[20:09:30 :: 0.002] Starting import...
[20:09:31 :: 8.058] Finished import
```
Authors
-------
- Florian Preusner ([Twitter][2])
See also the list of [contributors][3] who participated in this project.
License
-------
This bundle is licensed under the MIT License - see the LICENSE file for details
[1]: https://packagist.org/packages/eightpoints/assist-bundle
[2]: http://twitter.com/floeH
[3]: https://github.com/8p/AssistBundle/graphs/contributors