Giter Club home page Giter Club logo

eBuildy PHP Framework

Features

Get started

  1. Install composer

    curl -sS https://getcomposer.org/installer | php

  2. Declare composer dependencies (composer.json file)

    {
    	"require": {
    		"ebuildy/ebuildy": "dev-master",
    		"symfony/yaml" : "dev-master",
    		"symfony/console" : "dev-master",
    		"mikejestes/scheezy": "dev-master",
    		"twig/twig" : "v1.14.1",
    	}
    }
    
    

The bootstrap (index.php)

Get ready! Create your index.php file like this:

<?php

define('DEBUG', isset($_GET['debug']));

define('ROOT', realpath(__DIR__.DIRECTORY_SEPARATOR.'..') . DIRECTORY_SEPARATOR);
define('SOURCE_PATH', ROOT.'src/');
define('VENDOR_PATH', ROOT.'vendor/');
define('CONFIG_PATH', ROOT.'config/');
define('KENV', $_SERVER['ENV']);
define('TMP_PATH', ROOT . 'tmp/' . KENV . '/');
define('WEB_PATH', ROOT.'web/');

putenv('PATH=' . getenv('PATH') . ':/usr/local/bin:/usr/bin');

include(VENDOR_PATH . 'autoload.php');
        
if (PHP_SAPI === 'cli')
{
	 if (defined("__CONFIGURATION_MODE__"))
	 {
		$configuration = new \eBuildy\Container\ContainerBuilder();

		$configuration->loadFile(CONFIG_PATH . KENV . '/config.yml')
				->loadAnnotations(VENDOR_PATH . 'ebuildy/ebuildy/src')
				->loadAnnotations(SOURCE_PATH . 'Kinou', SOURCE_PATH)
				->build(TMP_PATH, 'Container');

		die("Configuration has been done !");
	}
	
	include(TMP_PATH . "Container.php");

	$worker = new \eBuildy\Worker\CommandWorker(new \Container());

	$worker->initialize($argv);

	return $worker->run();
}
else
{
	include(TMP_PATH . "Container.php");
	
	$worker = new \eBuildy\Worker\WebWorker(new \Container());

	$worker->initialize($_GET, $_POST, $_COOKIE, $_FILES, $_SERVER);

	return $worker->run();
}

Thomas Decaux's Projects

argo-cd icon argo-cd

Declarative continuous deployment for Kubernetes.

backiss icon backiss

backup/restore files (HDFS) as simple as a (french) kiss!

backstage icon backstage

Backstage is an open platform for building developer portals

data-ui icon data-ui

web UI to execute SQL queries against data API server

docker-box icon docker-box

A Docker image to build phar executable with box2 project.

docker-testr icon docker-testr

A Docker image to run web automatic tests, with CasperJS.

ebuildy icon ebuildy

eBuildy is a very simple Php framework, free, easy and fast to use. It comes with just needed tools such as HTTP request, response and session management, URL rewriting and a real Model View Controller architecture by modules.

gatsby icon gatsby

Build blazing fast, modern apps and websites with React

gatsby-mdx icon gatsby-mdx

Gatsby+MDX • Transformers, CMS UI Extensions, and Ecosystem Components for ambitious projects

github2gitlab icon github2gitlab

Import Github repository with members, teams, issues to Gitlab

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.