Fork me on GitHub

CoreFramework 2.0

PHP framework based on plugin system.


More informations

PHP framework based on plugin system.


The CoreFramework is built around a 300 lines single file that architect all other components as independent plugins. They are loaded in a list and can surcharge anything declared by their predecessors. Each plugin can register an autoloader, command-line functions or declare variables to load as JavaScript or CSS resource.

Easy to develop


Responsive

Your site looks good everywhere

{less}

Customizable

Easy to theme and customize with LESS

Fast

Cache everywhere, fusioned resources

Angular

Built for angular applications

B

Bootstrap

Rapid design based on bootstrap

Consistent

A mature, well-tested, stable codebase

Database abstraction

Sql or No-Sql with the same code

Plugins

Everything is reusable

Secure

Designed with security in mind

Features


Command line interface

Core

Manage Inputs and Outputs

  Input::get("param");
  Output::Success(array("result" => 25));

Simple Logging system

  Logger::Error("Something wierd appared");

Configuration

Define Rest Api

Resources Managment

Error Handling

Caching system

Internationalization

Template engine

Session Managment

Unit Test

Plugin system

Create a plugin

Create a new folder in your application's plugins dir with the same structure as the application: config, requests, classes, templates, www extracting only the functionality you need. Variables that can be changed will be placed in the config/config.json file.

Angular / Bootstrap

Default templates for CRUD

Database

Models

Collections

CRUD

Minifier

Getting started


Requirements

This software require PHP version 5.3 or up with the php command-line program available to run istallation scripts.

You may also need Internet access to be able to download dependencies.

Download CoreFramework

Create a new project

create a new folder and type:

php <path to repo>/setup.php skel:init

You will have a set of files to use as a starting point.

Site Configuration

The global site configuration like database settings or debug / release switch are defined in config/config.php

<?php namespace DavBfr\CF;

configure("DEBUG", true);