Skip to content

Installation

Sunel Tr edited this page Jul 25, 2018 · 6 revisions

To install this package you will need:

  • PHP 5.5

You must then modify your composer.json file and run composer update to include the latest version of the package in your project.

"require": {
    "sunel/layout-core": "*"
}

Or you can run the composer require command from your terminal.

composer require sunel/layout-core

At this time the package is still in a developmental stage and as such does not have a stable release.

Layout setup

Layout provides a single Factory class where dependence are injected through constructor.

$page = new \Layout\Core\PageFactory(
 \Layout\Core\Contracts\EventsDispatcher $events,
 \Layout\Core\Contracts\ConfigResolver $config,
 \Layout\Core\Contracts\Profiler $profiler,
 \Layout\Core\Contracts\Cacheable $cache
);

For all the dependence only the interface is provided, it the responsibility of the developer to implement it.

Configuration →

Clone this wiki locally