https://github.com/yannoff/handyman
A basic REPL for symfony applications
https://github.com/yannoff/handyman
php repl symfony tinker
Last synced: 2 months 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-24T08:59:49.000Z (over 2 years ago)
- Last Synced: 2025-03-12T23:23:38.313Z (over 1 year ago)
- Topics: php, repl, symfony, tinker
- Language: PHP
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- 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
[](https://packagist.org/packages/yannoff/handyman)
[](https://packagist.org/packages/yannoff/handyman)
[](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).