PHPackages                             vanchelo/phalcon-console - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. vanchelo/phalcon-console

ActiveLibrary[CLI &amp; Console](/categories/cli)

vanchelo/phalcon-console
========================

Phalcon Ajax Console

v1.0.2(10y ago)141.5k3[1 issues](https://github.com/vanchelo/phalcon-console/issues)GPLv2CSSPHP &gt;=5.4.0

Since Oct 10Pushed 5y ago5 watchersCompare

[ Source](https://github.com/vanchelo/phalcon-console)[ Packagist](https://packagist.org/packages/vanchelo/phalcon-console)[ Docs](https://github.com/vanchelo/phalcon-console)[ RSS](/packages/vanchelo-phalcon-console/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Phalcon Console
===============

[](#phalcon-console)

Adapted by Phalcon  - Laravel 4 Console

AJAX console to execute PHP code in the browser with light, the ability to save the last code execution, limited access by IP address

Example, commissioning editor, click **Execute** `[Ctrl + Enter]`

```
$user = Users::findFirst(1);

echo $user->name;
```

Result

```
vanchelo
```

Installation
------------

[](#installation)

Install the latest stable version using `composer`:

```
composer require vanchelo/phalcon-console

```

### Copy and paste:

[](#copy-and-paste)

- Copy the contents of a folder to any directory
- Register your autoloader namespace `Vanchelo\Console`

```
// $loader = new Loader();

$loader->registerNamespaces([
    'Vanchelo\Console' => __DIR__ . '/../library/console/src/', // The path may be different
]);
```

- Copy the contents of folders in your public folder accessible from public WEB
- Add Services

```
/**
 * Register Console Service
 */
new Vanchelo\Console\ConsoleService($di);
```

- Add to the list of allowed IP addresses in the `src/config/config.php`

```
/* ... */
'whitelist' => [
    '127.0.0.1',
    '::1'
],
/* ... */
```

Everything! The console must be available at `http://site.com/phalcon-console`

As in the console are available all the services and service

Your settings
-------------

[](#your-settings)

To specify your settings console, you must:

- Create a configuration file in a convenient location, such as this content

```
