All Projects → yulonghu → Asf

yulonghu / Asf

Licence: other
Simple, High performance PHP framework written in C

Programming Languages

c
50402 projects - #5 most used programming language

Labels

Projects that are alternatives of or similar to Asf

A17t
An atomic design toolkit for pragmatists
Stars: ✭ 236 (-4.84%)
Mutual labels:  framework
Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+1037.5%)
Mutual labels:  framework
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
Symfony Cheat Sheets
Symfony Cheat Sheets
Stars: ✭ 242 (-2.42%)
Mutual labels:  framework
Bear.sunday
A resource-oriented application framework
Stars: ✭ 230 (-7.26%)
Mutual labels:  framework
Golf
⛳️ The Golf web framework
Stars: ✭ 248 (+0%)
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
Mix
Hybrid development kit / 混合开发工具库
Stars: ✭ 236 (-4.84%)
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
Finalcut
A text-based widget toolkit
Stars: ✭ 244 (-1.61%)
Mutual labels:  framework
Grizzly
A cross-platform browser fuzzing framework
Stars: ✭ 234 (-5.65%)
Mutual labels:  framework
Openmdao
OpenMDAO repository.
Stars: ✭ 243 (-2.02%)
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
Unnamed Css Framework
A simple colorful CSS framework
Stars: ✭ 249 (+0.4%)
Mutual labels:  framework
Moonzoon
Rust Fullstack Framework
Stars: ✭ 244 (-1.61%)
Mutual labels:  framework

Asf - API Services Framework

Build Status

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

http://www.your-domain.com

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].