2017 © Pedro Peláez
 

library repl-bundle

Add a Boris repl command to the Symfony console

image

99designs/repl-bundle

Add a Boris repl command to the Symfony console

  • Monday, March 20, 2017
  • by harto
  • Repository
  • 36 Watchers
  • 0 Stars
  • 39,595 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

REPL bundle


Important: This bundle is no longer under active development. Consider using PsyshBundle as an alternative., (*1)


Provides a repl command for the Symfony console, powered by Boris., (*2)

Installation

Add as a development dependency to composer.json:, (*3)

composer require --dev 99designs/repl-bundle

Register the bundle in app/AppKernel.php:, (*4)

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // all your run-time bundles
        );

        if ($this->getEnvironment() == 'dev') {
            $bundles[] = new NinetyNine\Bundle\ReplBundle();
        }

        return $bundles;
    }
}

Usage

Run via the Symfony console:, (*5)

app/console repl

The following variables are imported into the global namespace:, (*6)

  • $kernel: Application kernel
  • $container: The DI container

Issues

Boris depends on PHP's process control extension. Even if this is installed, you may see errors like this:, (*7)

PHP Warning:  pcntl_fork() has been disabled for security reasons in /my-project/vendor/d11wtq/boris/lib/Boris/Boris.php on line 148
PHP Notice:  fwrite(): send of 1 bytes failed with errno=32 Broken pipe in /my-project/vendor/d11wtq/boris/lib/Boris/EvalWorker.php on line 205

If you see these errors, you'll need to edit your PHP CLI configuration (typically found at /etc/php5/cli/php.ini) to allow invocation of the named functions., (*8)

The Versions

20/03 2017

dev-master

9999999-dev

Add a Boris repl command to the Symfony console

  Sources   Download

The Requires

 

The Development Requires

20/03 2017

1.1

1.1.0.0

Add a Boris repl command to the Symfony console

  Sources   Download

The Requires

 

The Development Requires

20/03 2017

dev-support-symfony-3

dev-support-symfony-3

Add a Boris repl command to the Symfony console

  Sources   Download

The Requires

 

The Development Requires

02/04 2014

1.0.0

1.0.0.0

Add a Boris repl command to the Symfony console

  Sources   Download

The Requires

 

The Development Requires