- 授权协议: BSD
- 开发语言: C/C++ PHP
- 操作系统: 跨平台
- 软件首页: http://www.myleftstudio.com/
- 软件文档: https://github.com/dreamsxin/phalcon7-docs
- 官方下载: https://github.com/dreamsxin/cphalcon7/archive/master.zip
软件介绍
Phalcon7 是继承自 Phalcon 1.3.x,开源、全功能栈、使用 C 编写、针对 PHP 7 优化的高性能框架。 开发者不需要学习和使用 C 语言的功能, 因为所有的功能都以 PHP 类的方式暴露出来,可以直接使用。 Phalcon 也是松耦合的,可以根据项目的需要任意使用其他对象。
Phalcon 不只是为了卓越的性能, 我们的目标是让它更加健壮,拥有更加丰富的功能以及更加简单易于使用!
基于Phalcon框架1.3版本开发,继承优化了DI(多个DI可以指定name)和PHQL(重新定义它为Model的底层数据操作接口,支持批量插入与修改),进一步完善Model以及Event,增加了调试模式,精简了代码。 只支持PHP7(针对PHP5有单独版本),删除Volt、ODM,增加了QRcode、Captcha。
开始调试:
Phalcon\Debug:enable();
生成二维码:
$qr = new \Phalcon\Chart\QRcode();
if ($qr->generate($str)) {
$ret = $qr->save('unit-tests/assets/qr.png');
}读写分离:
<?php
class MyQuery extends Phalcon\Mvc\Model\Query
{
/**
* 动态选择读数据库连接
*
* @param array $intermediate
* @param array $bindParams
* @param array $bindTypes
*/
public function selectReadConnection($intermediate, $bindParams, $bindTypes)
{
return $this->getDI()->get('readDB');
}
/**
* 动态选择写数据库连接
*
* @param array $intermediate
* @param array $bindParams
* @param array $bindTypes
*/
public function selectWriteConnection($intermediate, $bindParams, $bindTypes)
{
return $this->getDI()->get('writeDB');
}
}
$di->set('modelsQuery', 'MyQuery');
Hacking Growth
Sean Ellis、Morgan Brown / Crown Business / 2017-4-25 / USD 29.00
The definitive playbook by the pioneers of Growth Hacking, one of the hottest business methodologies in Silicon Valley and beyond. It seems hard to believe today, but there was a time when Airbnb w......一起来看看 《Hacking Growth》 这本书的介绍吧!
图片转BASE64编码
在线图片转Base64编码工具
Markdown 在线编辑器
Markdown 在线编辑器
