2017 © Pedro Peláez
 

library core

eArc - the explizit architecture framework - core functionality

image

earc/core

eArc - the explizit architecture framework - core functionality

  • Monday, June 11, 2018
  • by Thomas Koudela
  • Repository
  • 0 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

eArc core

Core component of the eArc framework. The eArc stands for explicit architecture. It is about the urge to make code as easy to comprehend as possible, and the striving to touch the programmers' freedom to code as little as possible. In short, it is about simplicity and good architecture., (*1)

earc/core handles aspects all earc components have in common. Users of the framework or some of its components will never need to install this package directly., (*2)

table of Contents

configuration

Place a file named .earc-config.php beneath the vendor dir. It's the configuration file for all the earc components., (*3)

<?php #.earc-config.php

return ['earc' => [
    'is_production_environment' => true
    //.. place here the parameters for the components
]];

Then put the following code in the bootstrap section of your framework or your index.php file., (*4)

use eArc\DI\DI;
use eArc\Core\Configuration;

DI::init();
Configuration::build();

That's it. You're ready to go., (*5)

customizing

If you want to put the configuration file somewhere else you can pass the filename as parameter to the build method., (*6)

Hint: If you prefer the YAML format and do not use php constructs in your configuration, you can use a yaml parser., (*7)

troubleshooting

If you get an error, (*8)

PHP Fatal error:  Uncaught Error: Class 'eArc\DI\DI' not found

you most probably have not registered the composer autoloader yet. You can do this by requiring the composer autoload script in the vendor directory., (*9)

use eArc\DI\DI;
use eArc\Core\Configuration;

require '/absolute/path/to/your/vendor'.'/autoload.php';
DI::init();
Configuration::build();

Public components

All components can be used without the framework. Some components may depend on each other., (*10)

releases

release 1.1

  • PHP ^7.2 || ^8.0

release 1.0

  • complete rewrite

release 0.1

  • the first official release

The Versions

11/06 2018

dev-master

9999999-dev

eArc - the explizit architecture framework - core functionality

  Sources   Download

MIT

The Requires

  • php ^7.2

 

by Avatar Thomas Koudela