quidphp/assert
Composer 安装命令:
composer require quidphp/assert
包简介
Application to run the QuidPHP testsuite
README 文档
README
About
QuidPHP/Assert repository contains an application to run the testsuite. This testsuite contains roughly 15000 assertions which will thoroughly test your PHP setup. It also comes with some JavaScript tests.
License
QuidPHP/Assert is available as an open-source software under the MIT license.
Documentation
QuidPHP/Assert documentation is available at QuidPHP/Docs.
Installation
QuidPHP/Assert can be easily installed with Composer. It is available on Packagist.
$ composer create-project quidphp/assert --prefer-dist
Requirement
QuidPHP/Assert requires the following:
- Apache or Nginx server (running on MacOs or Linux environment).
- Works in Windows environment but there are known issues.
- PHP 8.1
- with these extensions:
- ctype
- curl
- date
- fileinfo
- gd
- iconv
- json
- mbstring
- pcre
- openssl
- session
- SimpleXML
- zip
- PDO
- pdo_mysql
- and these PHP INI directives
- post_max_size must be at least 1MB
- post_max_size must be larger than upload_max_filesize
- memory_limit must be at least 128MB
- with these extensions:
- Mysql (>= 8.0) or MariaDB (>= 10.4) database
- Any modern browser (not Internet Explorer)
Dependency
QuidPHP/Assert has the following dependency:
- quidphp/site - Quid\Site - Extended platform to build a website using the QuidPHP framework and LemurCMS
All dependencies will be resolved by using the Composer installation process.
Setup
Once the installation is complete, simply follow these steps:
- Make sure the main directory and all sub-directories are writable by your web server.
- Configure an Apache Virtual Host or Nginx Server Block in order to have a domain pointing to the public folder document root.
- Import db.sql within a new Mysql/MariaDB database.
- Duplicate the env-default.php file and rename it to env.php.
- Update the scheme hosts within the env.php file to reflect your server configuration.
- Update the database parameters within the env.php file.
Booting via HTTP
From your web browser, enter the URL to the public/index.php entry file.
Booting via CLI
Open the project folder in the Command Line. You may now submit a command in the following format:
php quid php quid :prod/assert
Overview
QuidPHP/Assert contains 9 files. Here is an overview:
- .gitignore - Standard .gitignore file for the testsuite
- composer.json - File declaring all Composer PHP dependencies
- db.sql - Sql database required for the QuidPHP testsuite
- env-default.php - Declare environment data for the testsuite, copy this file and rename to env.php
- LICENSE - MIT License file for the repository
- quid - File for booting the testsuite via CLI
- README.md - This readme file in markdown format
- public/.htaccess - Simple apache directive file, requires mod_rewrite
- public/index.php - Index file for booting the testsuite via an HTTP request
Known issues
- The testsuite fails on Windows when using the Command Prompt.
- On Windows, there are some problems related to creating symlinks.
- On Windows, you will need to add lower_case_table_names = 2 in your database configuration file (my.cnf). The table and column names need to be stored in their natural case.
- On some setup, you may need to add your domain to your system hosts file. If not, some assertions involving curl may fail.
quidphp/assert 适用场景与选型建议
quidphp/assert 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 03 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「testsuite」 「php-framework」 「quid」 「quidphp」 「php-cms」 「lemur-cms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 quidphp/assert 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 quidphp/assert 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 quidphp/assert 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Provides custom Fixture classes to help managing test fixtures in pure SQL
A lightweight, secure-by-default PHP microframework built on Slim – providing Laravel-like features (ORM, authentication, migrations, caching) without the bloat. Perfect for building REST APIs and small-to-medium PHP applications.
A PHP nano framework for REST API's & Micro-Services
The Core Framework for MightyPHP Framework
PHP library that provides a set of base objects and collections
PHP library that provides database access and a comprehensive ORM
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-30