An IRB-like interactive shell for symfony.
What's new:
Usage:
- install PHP_Shell from PEAR: pear install channel://pear.php.net/PHP_Shell-0.3.0
- download symfony-interactive.php and place it in your symfony project folder. Example: /var/www/htdocs/myapp
- run it like this: php symfony-interactive.php
Now you're hooked up and have access to all propel objects, symfony classes etc.
>> $user = UserPeer::doSelectOne(new Criteria());
>> $user->getName()
'Andrei Baragan'
>> $user->setName('Andreius Baragan')
>> $user->save()
1
>> $user->getName()
'Andreius Baragan'