glial / glial
A HMVC PHP framework (include CLI mode) made for high volumetry & batch process
Requires
- php: >=7.0
- hoa/console: ~3.0
- jdorn/sql-formatter: 1.2.*
- monolog/monolog: 1.*
- phpseclib/mcrypt_compat: *
- dev-master
- v5.1.15
- v5.1.14
- v5.1.13
- v5.1.12
- v5.1.11
- v5.1.10
- v5.1.9
- v5.1.8
- v5.1.7
- v5.1.6
- v5.1.5
- v5.1.4
- v5.1.3
- v5.1.2
- 5.0.x-dev
- v4.2.15
- v4.2.14
- 4.2.13
- 4.2.12
- v4.2.11
- v4.2.10
- v4.2.9
- v4.2.8
- v4.2.7
- v4.2.6
- v4.2.5
- v4.2.4
- v4.2.3
- v4.2.2
- v4.2.1
- v4.1.17
- v4.1.16
- v4.1.15
- v4.1.14
- v4.1.13
- v4.1.12
- 4.1.11
- v4.1.10
- v4.1.9
- v4.1.9a
- v4.1.8
- v4.1.7
- v4.1.6
- v4.1.5
- v4.1.4
- v4.1.3
- 4.1.2.11
- 4.1.2.10
- 4.1.2.9
- 4.1.2.8
- 4.1.2.7
- 4.1.2.6
- 4.1.2.5
- 4.1.2.4
- 4.1.2.3
- 4.1.2.2
- 4.1.2.1
- 4.1.2
- 4.1.1
- 4.1
- 4.0
- 3.2.2
- 3.2
- 3.1.1
- 3.1
- 3.0a
- 2.1.0
- v1.4.14
- dev-develop
This package is auto-updated.
Last update: 2024-03-28 17:49:13 UTC
README
http://www.glial-framework-php.org/
Requirement ?
- Linux (degraded on windows with daemon and cli)
- PHP 5.5 or better
- modrewrite of Apache
- curl
- mcrypt
How to install?
To create a new project
Have a look on glial-newTo install as a library
Simply add a dependency on glial/glial to your project's composer.json file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json file that just defines a development-time dependency on Glial 3.2:
{ "require": { "glial/glial": "5.1.*" } }
Why use Glial?
Build application quickly
Many common components are included: translation tools, database access, code profiling, encryption, validation, and more.Use specific libraries and tools
* Full support to PSR-0~4 * Extending existing components and adding new libraries is very easy.Write commercial applications
Uses the GU/GPL license, so you can use and modify it for commercial purposes.A very fast framework
Benchmarking a framework is hard and rarely reflects the real world, but Glial is very efficient and carefully optimized for real world usage.A simple page with core system loaded we turn around between 400 and 800 query by second.
Good debugging and profiling tools
* Simple and effective tools help identify and solve performance issues quickly. * In dev mode you have some tools which show you the execution time for each module and memory used, same for each databases connectedKnow what the framework is doing
Very well commented code and a simple routing structure makes it easy to understand what is happening.Works with objects and classes
This is an OOP framework that is extremely DRY. Everything is built using strict PHP 5 classes and objects.Write you own code
There are no code generators and endless configuration files, so setting up is fast and easy.Who use Glial ?
- Acsediate
- BNPPARIBAS
- Société Générale (SGCIB)
- Arkadin
- Alstom (Transport)
- Photobox
User Guide
Glial don't work as most of framework worked actually.
I think it's the first framework to work in a navigator and in CLI in same time. When I developed Glial, the goal was to make some stuff usable and worked fine, it's possibly that it's not nice by moment.
First you have to know if you miss somethings about spelling and stuff, All in Glial was in lower case and in singular. Why ? Like that we don't have transform any string and waste time of execution. Since we decided to follow the SPR-X, all class name and directory are now in StudyCaps
About model.
To construct the model, we read the database to build the model. It's mean we use some convention to make a good parsing. and must respect these points :
- all tables must have the first field called id, with a primary index not null autoincremented (no more obligatory now since version 3.0)
- all fk, have to start by "id_" fallowed by the name of the table
if for one table we need to reference two FK on the same table we have to add a "__" double underscore followed by detailled name.
example : id_user__customer, id_user__provider
When we require to create a table to join 2 others you have to start the name of first table fallowed by "__" fallowed by the last table to link. the names have to be sort by alphabetique.
example for table user and mail_message
the name will be : mail_message__user
About controller
For the moment no custom route are supported.
One specifity of Glial, it's the controller/action can fit together, this option will be used natively with ajax, to load specificly only one area at once. Each controller/action, will be checked by auth, to decide to display or not. More each controller/action have 2 options :
- read (allow access to all in read)
- write (allow access to all in create / update / delete)
About view
We decided to use PHP, and not an engine of template because nobody can be faster than PHP only, and the goal of Glial it's to focus on developement. And not spend time to learn a new language even it's easy.