"simp" is a simple back-end service framework for PHP. Based on command driven logic, It has a layered-structure and simple AOP concept. You can easily use this framework for your simple ajax & mobile back-end service
0.1.0
See example files below sequentially,
file | description |
---|---|
/html/user.html | test view |
/manager/UserManager.php | for API service exposure |
/core/aopconfig.json | for aop configuration |
/model/UserInfo.php | for sample data model |
'simp' supports method-level AOP concept like below:
- before execute method
- after execute method
- before handle exception
- after handle exception
AOP configuration: You can setup AOP Execution by specifying target class and method. 'all' means default AOP config for the specified class.
{
"UserManager":
{
"all":
{
"before":
[
{
"class": "Logger",
"method": "log"
}
],
"after":
[
{
"class": "Logger",
"method": "log"
}
],
"beforeError":
[
{
"class": "ErrorHandler",
"method": "handleError"
}
],
"afterError":
[
{
"class": "ErrorHandler",
"method": "handleError"
}
]
}
}
}
directory | description |
---|---|
aop | aop modules |
core | base classes for framework |
manager | service managers which is exposed as backend services |
model | objects combined with data domain objact and data model |
log | saved logs |
html | html views |
##Todo's
- Implement ClassLoader & Cache
- Add Scope Feature (Server Instance, Session, Reqeust)
- Add 'Scheme(Table) to Model Auto-Generation' Feature
- Add Front-End Javascript Auto-Generation Feature
- Handling User Parameters In AOP Module
MIT
Free Software, Hell Yeah!