Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yannoff/handyman
A basic REPL for symfony applications
https://github.com/yannoff/handyman
php repl symfony tinker
Last synced: 1 day ago
JSON representation
A basic REPL for symfony applications
- Host: GitHub
- URL: https://github.com/yannoff/handyman
- Owner: yannoff
- License: mit
- Created: 2021-11-24T14:02:43.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-24T08:59:49.000Z (about 1 year ago)
- Last Synced: 2024-04-19T21:11:32.112Z (7 months ago)
- Topics: php, repl, symfony, tinker
- Language: PHP
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# handyman
A basic REPL for symfony applications
[![Latest Stable Version](https://poser.pugx.org/yannoff/handyman/v/stable)](https://packagist.org/packages/yannoff/handyman)
[![Total Downloads](https://poser.pugx.org/yannoff/handyman/downloads)](https://packagist.org/packages/yannoff/handyman)
[![License](https://poser.pugx.org/yannoff/handyman/license)](https://packagist.org/packages/yannoff/handyman)## Installation
Using composer:
```
composer require --dev yannoff/handyman
```## Usage
Call the REPL script from the application top-level directory:
```
vendor/bin/handyman
```
> _Depending on the [main `composer.json` config](https://getcomposer.org/doc/06-config.md#bin-dir), a link to the script may be available in the `bin/` directory._### Example
```
PHP> print_r(get_class_methods(self::get('slugger')));;
Array
(
[0] => __construct
[1] => setLocale
[2] => getLocale
[3] => slug
)PHP> echo self::get('slugger')->slug('this is my text')
PHP> // Note: to trigger eval, line must end with a double semi-colon (;;)
PHP> ;;
this-is-my-text
PHP>
```> _Code will be eval'd as soon as two semi-colons (`;;`) are detected in the line end._
### Options
#### `--kernel`
*Alternative application's kernel fully-qualfied class name (instead of `App\Kernel`)*
#### `--working-dir`
*Optional override for the `%kernel.project_dir%` value*
#### `--verbose`
*Turn on verbose mode*
## License
Licensed under the [MIT Licence](LICENSE).