{"id":12244082,"url":"https://github.com/yulonghu/asf","last_synced_at":"2025-08-20T02:32:07.379Z","repository":{"id":247300280,"uuid":"132080229","full_name":"yulonghu/asf","owner":"yulonghu","description":"Simple, High performance PHP framework written in C","archived":false,"fork":false,"pushed_at":"2021-12-21T15:02:28.000Z","size":391,"stargazers_count":240,"open_issues_count":1,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-07T08:21:19.767Z","etag":null,"topics":["asf","c","framework","php","php7"],"latest_commit_sha":null,"homepage":"http://www.box3.cn/phpasf","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yulonghu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-04T03:18:55.000Z","updated_at":"2025-03-21T07:39:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"48f77f19-f3c8-412b-9900-169bb01c8a80","html_url":"https://github.com/yulonghu/asf","commit_stats":null,"previous_names":["yulonghu/asf"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/yulonghu/asf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yulonghu%2Fasf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yulonghu%2Fasf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yulonghu%2Fasf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yulonghu%2Fasf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yulonghu","download_url":"https://codeload.github.com/yulonghu/asf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yulonghu%2Fasf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271254595,"owners_count":24727368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asf","c","framework","php","php7"],"created_at":"2024-07-08T00:08:47.708Z","updated_at":"2025-08-20T02:32:07.038Z","avatar_url":"https://github.com/yulonghu.png","language":"C","readme":"# Asf - API Services Framework\n[![Build Status](https://travis-ci.org/yulonghu/asf.svg?branch=master)](https://travis-ci.org/yulonghu/asf)\n\nSimple, High performance PHP framework written in C. \n\n## Introduction\nAPI Services Framework (or simply Asf). It's has many micro-innovation and is a new generation of lightweight MVC framework.\n\n## Features\n- The class provided by the framework, loaded when the PHP process starts, and resident in memory.\n- Errno = 999, PHP fatal error interception.\n- Strong early warning mechanism (DB, Cache, Script, PHP Error).\n- Support for Logger Buffer Cache\n- Support for GPC methods, making it easier to use PHP global variables ($_GET, $_POST, $_COOKIE)\n- Support for configuration file resident memory\n- Support for faster, easier-to-operate cookie management\n\n## Install\n### Requirements\n- PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4\n- GCC 4.4.0+ (Recommended GCC 4.8+)\n\n### DownLoad\n```\ngit clone https://github.com/yulonghu/asf.git\n```\n\n### Compile for Linux/Unix/Mac\n\nProvide two installation methods.\nSelect No.1, Use the following methods to install the extension:\n\n```bash\ncd asf/travis\nsudo ./install -i /path/to/phpize -c /path/to/php-config\n```\n\nSelect No.2, PHP extension standard installation:\n\n```bash\ncd asf/asf\n/path/to/phpize\n./configure --with-php-config=/path/to/php-config\nmake \u0026\u0026 make install\n```\n\n#### Add the extension to your php.ini\n```ini\nextension=asf.so\n```\n\nRestart the web server\n\n### Documentation\n\nhttp://www.box3.cn/phpasf/index.html\n\n## Get Started\n\n### Use tools to create a new project\n```\n/php-bin-path/php asf-src/tools/asf_project.php /to-path/project_name\n```\n#### Layout\n```\n+ public\n  | - index.php\n+ config\n  | - config.php\n+ library\n+ modules\n    | - Bootstrap.php\n    | - Constants.php\n  + api\n    |+ services\n\t   |- Index.php  // Default service\n    |+ logics\n    |+ daos\n```\n\n### config/config.php\n```php\n\u003c?php\n$configs = array(\n    'asf' =\u003e array(\n        'root_path' =\u003e APP_PATH . '/modules',\n    )\n);\n\nreturn $configs;\n```\n\n### public/index.php\n```php\n\u003c?php\ndefine('APP_PATH', dirname(__DIR__));\n\n$app = new Asf_Application(APP_PATH . '/config/config.php');\n$app-\u003erun();\n```\n\n### Default service\n```php\n\u003c?php\nclass IndexService\n{\n    public function indexAction()\n    {\n        return 'Hello World';\n    }\n}\n```\n\n### Run in Nginx/Apache/Lighttpd\nhttp://www.your-domain.com\n\n#### Output results\n```\n{\n    \"errno\": 0,\n    \"data\": \"Hello World\"\n}\n```\n\n## License\nAsf is open source software under the [PHP License v3.01](http://www.php.net/license/3_01.txt)\n","funding_links":[],"categories":["网站框架"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyulonghu%2Fasf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyulonghu%2Fasf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyulonghu%2Fasf/lists"}