2017 © Pedro Peláez
 

library kernel-console

Kernel for Eureka Framework. Define console application kernel versions

image

eureka/kernel-console

Kernel for Eureka Framework. Define console application kernel versions

  • Thursday, March 15, 2018
  • by velkuns
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

kernel-http

Current version Supported PHP version Build Quality Gate Status Coverage, (*1)

Kernel Console for any Eureka Framework application., (*2)

Define global Application & Component kernel version, (*3)

Installation

If you wish to install it in your project, require it via composer:, (*4)

composer require eureka-framework/kernek-console

Usage

<?php

/*
 * Copyright (c) Romain Cottard
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use Eureka\Kernel\Console\Application\Application;
use Eureka\Kernel\Console\Kernel;
use Lcobucci\Clock\SystemClock;
use Psr\Container\NotFoundExceptionInterface;

//~ Define Loader & add main classes for config
require_once __DIR__ . '/vendor/autoload.php';

try {

    $root   = realpath(__DIR__ . '/..');
    $env    = 'dev';
    $debug  = true;

    $kernel = new Kernel($root, $env, $debug);

    $console = (new Application(SystemClock::fromUTC(), $argv, container: $kernel->getContainer()))
        ->setBaseNamespaces(['Application\Script', 'Eureka\Component'])
    ;

    $console->before();
    $console->run();
    $console->after();
    $console->terminate();

} catch (\Throwable $exception) {
    echo 'Exception: ' . $exception->getMessage() . PHP_EOL;
    exit(1);
}

Contributing

See the CONTRIBUTING file., (*5)

Install / update project

You can install project with the following command:, (*6)

make install

And update with the following command:, (*7)

make update

NB: For the kernel, the composer.lock file is not committed., (*8)

Testing & CI (Continuous Integration)

Tests

You can run unit tests (with coverage) on your side with following command:, (*9)

make tests

You can run integration tests (but without coverage) on your side with following command:, (*10)

make integration

For prettier output (but without coverage), you can use the following command:, (*11)

make testdox # run tests without coverage reports but with prettified output

Code Style

You also can run code style check with following commands:, (*12)

make phpcs

You also can run code style fixes with following commands:, (*13)

make phpcbf

Static Analysis

To perform a static analyze of your code (with phpstan, lvl 9 at default), you can use the following command:, (*14)

make phpstan

To ensure you code still compatible with current supported version at Deezer and futures versions of php, you need to run the following commands (both are required for full support):, (*15)

Minimal supported version:, (*16)

make php81compatibility

Maximal supported version:, (*17)

make php83compatibility

CI Simulation

And the last "helper" commands, you can run before commit and push, is:, (*18)

make ci  

License

This project is currently proprietary and should NOT be used outside Deezer, (*19)

The Versions

15/03 2018

dev-master

9999999-dev

Kernel for Eureka Framework. Define console application kernel versions

  Sources   Download

MIT

The Requires

 

by Romain Cottard

15/03 2018

1.1.2

1.1.2.0

Kernel for Eureka Framework. Define console application kernel versions

  Sources   Download

MIT

The Requires

 

by Romain Cottard

15/03 2018

1.1.1

1.1.1.0

Kernel for Eureka Framework. Define console application kernel versions

  Sources   Download

MIT

The Requires

 

by Romain Cottard

14/03 2018

1.1.0

1.1.0.0

Kernel for Eureka Framework. Define console application kernel versions

  Sources   Download

MIT

The Requires

 

by Romain Cottard

20/02 2018

1.0.3

1.0.3.0

Kernel for Eureka Framework. Define console application kernel versions

  Sources   Download

MIT

The Requires

 

by Romain Cottard

19/02 2018

1.0.2

1.0.2.0

Kernel for Eureka Framework. Define console application kernel versions

  Sources   Download

MIT

The Requires

 

by Romain Cottard

16/02 2018

1.0.1

1.0.1.0

Kernel for Eureka Framework. Define console application kernel versions

  Sources   Download

MIT

The Requires

 

by Romain Cottard

16/02 2018

1.0.0

1.0.0.0

Kernel for Eureka Framework. Define console application kernel versions

  Sources   Download

MIT

The Requires

 

by Romain Cottard