Biny是一款高效能的輕量級PHP框架
遵循MVC 模式,用於快速開發現代Web 應用程式
Biny程式碼簡潔優雅,對應用層,資料層,模板渲染層的封裝簡單易懂,能夠快速上手使用
高效能,框架回應時間在1ms以內
Biny is a high performance lightweight PHP framework.
It follows the MVC pattern for rapid development of modern Web applications
Biny code is simple and elegant. The application layer, data layer, and template rendering layer of the package is simple and easy to understand. This makes it quick to pick up.
Biny is high performance. Framework comes default with response time of less than 1ms. Stand-alone QPS easily up to 3000.
支援跨庫連表,條件複合篩選,查詢PK快取等
支援RESTful,類別的自動化載入管理
支援Form表單驗證,支援事件觸發機制
支援瀏覽器端調試,快速定位程式問題和效能瓶頸
具有sql防注入,html自動防xss等特性
Support cross library join table, conditional compound filter, query PK cache, etc.
Supports RESTful, automatic loading management of classes
Supports Form validation and supports event triggering mechanisms
Supports browser side debugging, rapid positioning problems and performance bottlenecks
With SQL anti injection, HTML automatic anti XSS and other characteristics
Wiki URL:http://www.billge.cc
English Wiki URL:http://www.billge.cc?lang=en
GitHub URL:https://github.com/Tencent/Biny
Q: 框架跟傳統PHP框架區別在哪裡,有什麼優勢?
A: Biny是個自由度很高的框架,不像其他框架需要配置各種路由,依賴外部元件。這些在Biny中都是不需要的,按照一個簡單的規則就能快速使用這些功能。同時框架已整合了自動加載機制,從開發者的角度出發,在功能上使用非常簡單。而且具有相當強的安全性。從框架層面完全屏蔽了SQL注入和XSS注入兩大安全難題,非常適合新人使用。
Q: Biny框架的表現如何?
A: 測試機:Intel Xeon Processor E5506 (4M Cache, 2.13 GHz, 4.80 GT/s Intel QPI) 一個普通查詢資料頁(50%命中快取)QPS 能輕鬆達到3000以上,與Yii,效能是Yii的2倍以上。
Q: 我想使用Biny,請問有相關說明文件嗎?
A: 文件都在http://www.billge.cc中
Q: Biny框架適配PHP7嗎?
A: 可以完美運行,效能提高2倍以上。
Q: Biny現在是最終版了嗎,還會繼續更新嗎?
A: 目前版本在多個專案中已經正常使用,相對成熟。後續會針對效能和功能上都會持續更新,屆時只需更新取代lib庫即可使用最新框架。
Q: What is the difference between a framework and a traditional PHP framework? What are the advantages?
A: Biny is a framework with high degree of freedom, unlike other frameworks that need to configure various routes, relying on external components. These are unnecessary in Biny and can be quickly used simple shedly 3ame shedly sh quickly shed 3h7 月integrated with the autoload mechanism. From the developer's point of view, the functionality is very simple to use. It defaults to strong security. From the framework level, the applications is completely shielded from SQL injection and XSS injection.
Q: What is the performance of the Biny framework?
A: Testing machine: Intel Xeon Processor E5506 (4M Cache, 2.13 GHz, 4.80 GT/s Intel QPI) A common query data page (50% hit cache), QPS can easily reach more than 3000. This is twas twice Yiias .
Q: Does the Biny framework work with PHP7?
A: Yes. Performance increases have been seen of over 2x when compared with PHP5.
Q: Is Biny the final version now? Will it continue to be updated?
A: The current version has been used in several projects and is relatively mature. The follow-up will be updated for both performance and functionality, and you'll need to update and replace the Lib library toame the lah frry work.
Q:模版渲染出現錯亂是為什麼
A:請在php.ini中開啟short_open_tag。 Biny的範例中使用了PHP中原生的簡寫渲染方法,需要將系統配置中的簡寫配置開啟才能正常使用。 當然如果是自己開發的模版頁面,不用簡寫方式的話,就算不開啟short_open_tag也是可以的。簡寫範例:
<?php echo $string;?> => <?=$string?>
Q:Why is the template rendering deranged?
A:Please open short_open_tag in php.ini. In the example of Biny, you use the native abbreviated rendering method in PHP, and you need to open the short configuration in the system configuration for normal use. Of course, elo you ation in the system configuration for normal use. Of course, elo you arearese 是own template page, you don't need to abbreviate it, even if you don't open the short_open_tag. Abbreviated example:
<?php echo $string;?> => <?=$string?>