yulonghu / Asf
Licence: other
Simple, High performance PHP framework written in C
Stars: ✭ 248
Programming Languages
c
50402 projects - #5 most used programming language
Labels
Projects that are alternatives of or similar to Asf
Horde
This is the old, deprecated, monolith Horde repository, archived here for historical reasons.
Stars: ✭ 246 (-0.81%)
Mutual labels: framework
Jina
Cloud-native neural search framework for 𝙖𝙣𝙮 kind of data
Stars: ✭ 12,618 (+4987.9%)
Mutual labels: framework
Jasonelle
🛸 🏘️ Jasonelle issues, releases and discussions repository.
Stars: ✭ 240 (-3.23%)
Mutual labels: framework
Quorra
A full fledged, open-source NodeJS MVC framework
Stars: ✭ 241 (-2.82%)
Mutual labels: framework
Opentest
Open source test automation tool for web applications, mobile apps and APIs
Stars: ✭ 246 (-0.81%)
Mutual labels: framework
Prest
PostgreSQL ➕ REST, low-code, simplify and accelerate development, ⚡ instant, realtime, high-performance on any Postgres application, existing or new
Stars: ✭ 3,023 (+1118.95%)
Mutual labels: framework
Ax Boot Framework
Full Stack Java Web Application Framework with Java & HTML5
Stars: ✭ 244 (-1.61%)
Mutual labels: framework
Loc Framework
本项目是完全基于Spring Boot2和Springcloud Finchley所进行了开发的,目的是简化和统一公司内部使用微服务框架的使用方法
Stars: ✭ 238 (-4.03%)
Mutual labels: framework
Avocado
Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
Stars: ✭ 246 (-0.81%)
Mutual labels: framework
Asf - API Services Framework
Simple, High performance PHP framework written in C.
Introduction
API Services Framework (or simply Asf). It's has many micro-innovation and is a new generation of lightweight MVC framework.
Features
- The class provided by the framework, loaded when the PHP process starts, and resident in memory.
- Errno = 999, PHP fatal error interception.
- Strong early warning mechanism (DB, Cache, Script, PHP Error).
- Support for Logger Buffer Cache
- Support for GPC methods, making it easier to use PHP global variables ($_GET, $_POST, $_COOKIE)
- Support for configuration file resident memory
- Support for faster, easier-to-operate cookie management
Install
Requirements
- PHP 7.0 +
- GCC 4.4.0+ (Recommended GCC 4.8+)
DownLoad
git clone https://github.com/yulonghu/asf.git
Compile for Linux/Unix/Mac
Provide two installation methods. Select No.1, Use the following methods to install the extension:
cd asf/travis
sudo ./install -i /path/to/phpize -c /path/to/php-config
Select No.2, PHP extension standard installation:
cd asf/asf
/path/to/phpize
./configure --with-php-config=/path/to/php-config
make && make install
Add the extension to your php.ini
extension=asf.so
Restart the web server
Documentation
http://www.box3.cn/phpasf/index.html
Get Started
Use tools to create a new project
/php-bin-path/php asf-src/tools/asf_project.php /to-path/project_name
Layout
+ public
| - index.php
+ config
| - config.php
+ library
+ modules
| - Bootstrap.php
| - Constants.php
+ api
|+ services
|- Index.php // Default service
|+ logics
|+ daos
config/config.php
<?php
$configs = array(
'asf' => array(
'root_path' => APP_PATH . '/modules',
)
);
return $configs;
public/index.php
<?php
define('APP_PATH', dirname(__DIR__));
$app = new Asf_Application(APP_PATH . '/config/config.php');
$app->run();
Default service
<?php
class IndexService
{
public function indexAction()
{
return 'Hello World';
}
}
Run in Nginx/Apache/Lighttpd
Output results
{
"errno": 0,
"data": "Hello World"
}
License
Asf is open source software under the PHP License v3.01
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].