2017 © Pedro Peláez
 

symfony-bundle cellulr-engine

Engine for CellulR

image

radiofrance/cellulr-engine

Engine for CellulR

  • Wednesday, May 23, 2018
  • by Radio France
  • Repository
  • 8 Watchers
  • 1 Stars
  • 1,829 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 11 Versions
  • 26 % Grown

The README.md

CellulR Engine

CellulR is an engine to build websites. Each page is composed from isolated and independent cells., (*1)

This project is production ready, and is used on www.franceculture.fr ., (*2)

Each cell is isolated and autonomous. A cell is composed of (at least) one PHP Controller, JavaScript and CSS files., (*3)

How it works ?

1. Rendering, (*4)

Render a cell 'VideoPlayer' in current page, with Twig :, (*5)

{{ cell('VideoPlayer', {arg1: 'a value'}) }}

Or using Varnish ESI (with standalone route):, (*6)

{{ cell('VideoPlayer', {arg1: 'a value'}, {strategy: 'esi'}) }}

2. The cell, (*7)

<?php

use Rf\CellulR\EngineBundle\CoreObject\Response;

class VideoPlayer
{
    public function __invoke(Video $video) {
        return new Response([
            'video' => $video
        ]); 
    }
}

3. Manifest file, (*8)

The component.json declares dependencies (with other cells) :, (*9)

{
    "name": "VideoPlayer",
    "description": "Cell for video player",
    "require": {
        "Legend": "*",
        "Image": "*"
    }
}

4. Assets (Javascript and Less), (*10)

Less files and JavaScript files are automatically included thanks to the cellulR-builder component., (*11)


Installation and documentation

[French only] Documentation, (*12)

Do not hesitate to help us to translate documentation in english :), (*13)

Licence

Project licensed under Cecill-B license. Please open the LICENSE file., (*14)

The Versions

20/09 2017

dev-feature/travis-integration

dev-feature/travis-integration

Engine for CellulR

  Sources   Download

CeCILL-B

The Requires

 

The Development Requires

by Avatar Radio France
by Nans Pellicari

symfony-bundle cellulr