PHP 框架 QueryPHP 1.0.2 发布

栏目: 软件资讯 · 发布时间: 5年前

内容简介:这次主要是完善测试用例,新增几十例测试用例,提升自动化水平,删除超过 100 个测试忽略标记。例外修复一些问题和调整了一些小功能。 关于 QueryPHP QueryPHP 是一款现代化的高性能 PHP 渐进式协程框架, 我们还是...
这次主要是完善测试用例,新增几十例测试用例,提升自动化水平,删除超过 100 个测试忽略标记。例外修复一些问题和调整了一些小功能。
 
PHP 框架 QueryPHP 1.0.2 发布
 
关于 QueryPHP
 
QueryPHP 是一款现代化的高性能 PHP 渐进式协程框架, 我们还是主要面向传统 PHP-FPM 场景,以工程师用户体验为历史使命,让每一个 PHP 应用都有一个好框架。
 
百分之百单元测试覆盖直面 Bug,致力于创造高品质产品 Level Level Leevel,依托 Swoole 开启未来更多可能,此刻未来逐步渐进。 我们的愿景是USE LEEVEL WITH SWOOLE DO BETTER, 让您的业务撑起更多的用户服务。
特性
  • Production-Ready (生产可用)
  • 框架理念 (值得托付的使命感,让每一个 PHP 应用都有一个好框架。)
  • 组件系统 (框架底层由独立的高内聚低耦合组件构成,可以轻松无侵入接入现有系统。)
  • 路由系统 (框架提供 MVC 自动路由并能够智能解析 Restful 请求和基于 OpenApi 3.0 规范的 swagger-php 注解路由,文档路由一步搞定。)
  • 整体解决方案 (框架提供了从缓存、Session、IOC 容器、模板引擎、Ddd ORM 等大量开箱即用的功能,提供了基于 Symfony Console 命令行 工具 集。)
  • 高品质 (百分之百单元测试覆盖直面 Bug,致力于创造高品质产品 Level Level Leevel。)
  • 业务协程化 (基于 Swoole 4 开发,我们的愿景是少量代码或者无修改,让你的业务撑起更多的用户服务。)
  • 百分之百单元测试覆盖(超过 3500 例测试用例保证系统可靠性和可持续维护。)
  • PHP 7 严格模式 (每一个 PHP 脚本都是 strict_types=1,严格模式可以避免很多弱类型带来潜在 BUG。)
  • PHP 7 类型提示 (尽可能为每一个方法提供确定的参数类型和返回值类型,以及类属性的类型支持。)
  • 依赖注入(完整实现,关键 MVC、命令行脚本、事件监听器全部接入 IOC 容器。)
  • 领域驱动设计(支持 UnitOfWork 事务工作单元、Repository 仓储、Specification 查询规约,Entity Getter Setter领域实体等。)
  • 避免闭门造车 (QueryPHP 一直从 Laravel 、Symfony 等框架吸收一些优秀的设计,同时我们自身也进行了大量的创新设计。)
  • 更多的特性期待你的发现...

功能更新

框架核心 framework

新增

  • #dfb82ea 功能(cache): 类 Leevel\Cache\Load 添加 clearCacheLoaded 清理已载入的缓存数据.

修复

  • #ea43842 修复(cache): 类 Leevel\Cache\Load 刷新缓存时 refresh,清理已载入的缓存数据.
  • #cec09bc 修复(database): 修复类 Leevel\Database\Ddd\Repository 方法参数类型注释.
  • #a652423 修复(database): 修复类 Leevel\Database\Ddd\Select @ method databaseSelect 返回类型错误.
  • #b5529d3 修复(console): 修复 Leevel\Console\RunCommand 方法参数类型注释错误
  • #0797959 测试(console): 修复 Tests\Console\BaseCommand:runCommand 参数类型错误
  • #475c7d9 fix(kernel): 修复 setTestProperty 和 getTestProperty
  • #5cc7175 fix(encryption): 修复加密解密算法不存在的 BUG
  • #09423ad fix(database): 修复 Leevel\Database\Console\SeedRun 继承类大小写问题

优化

  • #d16114f 重构(view): 使用 PHP_EOL 替代换行符 \n
  • #6409e26 重构: 当我们执行命令 composer dump-autoload --optimize --no-dev 时,清理无效的 Phinx 数据库迁命令
  • #0becd48 重构: 修复数据库迁移文件
  • #074b45f refactor(kernel): 整理代码 Leevel\Kernel\Console\Autoload
  • #538013f refactor(kernel): 重构清理无效脚本
  • #25ba54d refactor(cache): 删除 Leevel\Cache\Redis\PhpRedis redis 扩展是否安装检测和删除 @ codeCoverageIgnore 标记
  • #5e234cc refactor(database): 删除 Leevel\Database\Console\Entity 部分无用代码
  • #1e5ff0b refactor(di): 重构 newInstanceArgs 和重命名 $classname 为 $className
  • #3213c39 chore: 添加 league/flysystem-sftp 和 league/flysystem-ziparchive 到 require-dev 方便测试
  • #e6112f5 refactor(option):兼容 composer 2.0
  • #155465d chore: update build composer and phpunt version
  • #1f69242 chore: 从 composer.json 中删除 phpunit/phpunit 和 phpunit/php-token-stream
  • #91d1861 chore: 移动 robmorgan/phinx 到 composer require-dev

变更

  • #d3ddf39 refactor(console): 删除一些不常用的方法,大幅度精简
  • #f237e52 refactor(kernel): 删除 Leevel\Kernel\App 方法 namespacePath 的参数 $throwException

测试和文档

  • #71a090c 测试(cache): 为 Leevel\Cache\Load::clearCacheLoaded 添加测试用例和文档.
  • #7bf76eb 测试(session): 为 Leevel\Session\Console\Clear 添加测试用例.
  • #e0b51c0 测试(view): 为 Leevel\View\Console\Clear 添加测试用例.
  • #848b46c 测试: 为组手类添加不存在组手方法的测试用例.
  • #1413568 测试(datababe): 为数据库迁移脚本添加测试用例。
  • #d447693 tests(cache): 添加测试 testWithPassword
  • #258faed tests(console): 添加参数 $extendCommands 到 trait Tests\Console\BaseCommand 的方法 runCommand 中
  • #21e4ead tests(debug): 添加测试 Tests\Debug\Console\LinkDebugBarTest
  • #e74c68a tests(kernel): 整理一些测试脚本代码
  • #10edab6 tests(filesytem): 添加大量测试到 filesystem
  • #8f2f479 tests(kernel): 添加测试到 link:* command
  • #33e6692 tests(seccode): 添加测试 testDisplayImage
  • #956fdce tests(kernel): 添加测试 Tests\Kernel\Testing\HelperTest
  • #f6f0473 tests(kernel): 添加测试 Tests\Kernel\Testing\DatabaseTest
  • #d5eaf4c tests(kernel): 添加测试 Tests\Kernel\Utils\ClassParserTest
  • #cf381af tests(kernel): 添加测试 kernel bootstraplassParserTest
  • #01d3949 tests(kernel): 添加测试 testRenderForConsole
  • #5daf718 tests(kernel): 添加测试 testFunctionLang
  • #25cae7e tests(kernel): 添加测试 Tests\Kernel\InspectorTest
  • #20a9bb8 tests(mail): 为 mail 添加测试
  • #d96c70d tests(kernel): 为 Leevel/Kernel/Utils 添加测试
  • #2a495c3 tests: 修复 tests/Docs/Preface/PrefaceSummaryDoc.php
  • #06ad7e9 tests(encryption): 添加测试 testEncryptDataFailed
  • #fcf6225 tests(kernel): 为 Leevel\Kernel\App:namespacePath 添加测试
  • #001d844 tests(kernel): 为 Leevel\Kernel\Bootstrap\LoadOption 添加测试
  • #6bea4e3 tests(kernel): 为 Leevel\Kernel\ExceptionRuntimeoadOption 添加测试
  • #fc36e0d tests(kernel): 为 getConsoleApplication 添加测试
  • #9ebc06f tests(kernel): 为命名行核心添加测试
  • #8bdad89 tests(view): 添加测试 Tests\View\Console\CacheTest
  • #1b817b1 tests(kernel): 添加测试 Tests\Kernel\Console\DocFrameworkTest
  • #4b3095b tests(kernel): 添加测试 Tests\Kernel\Console\DocTest
  • #53a245e tests(kernel): 添加测试 Tests\Kernel\Console\IdeHelperFunctionTest
  • #e449509 tests: 使用 phpunit 9 时重构 assertFileNotExists 到 assertFileDoesNotExist,assertDirectoryNotExists 到 assertDirectoryDoesNotExist
  • #5b59f7a tests: 优化 test_procedure 数据库迁移

应用 application

更新

  • #a797676 refactor: 更新成功和失败消息模板.

优化

  • #29cad36 refactor: 优化数据库迁移
  • #eaae086 chore: 更新 composer 和 phpunit 版本
  • #8379676 chore: 从 composer.json 中删除 phpunit/phpunit,fzaninotto/faker 和 phpunit/php-token-stream
开发路线
下半年主要为边缘代码增加测试用例,提升稳定性,方便明年升级 PHP 8.0 版本。
 
安装
为了简化入门,我们开发了一个基于 IView-UI 通用后台权限系统,可以在传统 PHP-FPM,Swoole 和 RoadRunner 3 中模式下面运行。
composer create-project hunzhiwange/queryphp myapp
php leevel server <Visite http://127.0.0.1:9527/>
PHP 框架 QueryPHP 1.0.2 发布
Swoole 方式运行
 php leevel http:server <Visite http://127.0.0.1:9527/>
Go RoadRunner 方式运行
 /data/server/roadrunner-1.8.2-darwin-amd64/rr serve -d -v # -d = debug <Visite http://127.0.0.1:9527/>
运行基于 IViewUI 的通用权限系统
cd /data/codes/queryphp/frontend 
npm install
npm run dev

cd /data/codes/queryphp
php leevel server
http://127.0.0.1:9528/#/login
PHP 框架 QueryPHP 1.0.2 发布
PHP 框架 QueryPHP 1.0.2 发布
PHP 框架 QueryPHP 1.0.2 发布
PHP 框架 QueryPHP 1.0.2 发布

 

联系方式
如果你觉得不错,可以关注一下项目,谢谢。
Email: 635750557@qq.com

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

复杂网络理论及其应用

复杂网络理论及其应用

汪小帆、李翔、陈关荣 / 清华大学出版社 / 2006 / 45.00元

国内首部复杂网络专著 【图书目录】 第1章 引论 1.1 引言 1.2 复杂网络研究简史 1.3 基本概念 1.4 本书内容简介 参考文献 第2章 网络拓扑基本模型及其性质 2.1 引言 2.2 规则网络 2.3 随机图 2.4 小世界网络模型 2.5 无标度网络模型 ......一起来看看 《复杂网络理论及其应用》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具