php 基础支持,详细内容见 src/Utils
、src/Traits
目录。
项目自动拆分,如需跟踪源码更新情况,请前往:https://github.com/plugins-world/packages 查看 PhpSupport 目录
$ composer require zhenmu/support -vvv
php 基础支持,详细内容见 src/Utils
、src/Traits
目录。
项目自动拆分,如需跟踪源码更新情况,请前往:https://github.com/plugins-world/packages 查看 PhpSupport 目录
$ composer require zhenmu/support -vvv
我想修改默认的err_code err_msg这样的key,我看你内置了几个,我想改成code和message这样的key,但我应该在哪里使用setResponseCodeKey方法来全局改掉?
因项目内有较多的通用函数封装。故迁移至 https://github.com/plugins-world/PhpSupport 进行维护。
代码仓库位于 https://github.com/plugins-world/packages ,自动拆分到 https://github.com/plugins-world/PhpSupport 。
大佬 这个报错不应该啊 我都是按照文档上的步骤操作的
Error: Class "Symfony\Component\HttpFoundation\Response" not found in /vagrant/php7433/webman/vendor/zhenmu/support/src/Traits/WebmanResponseTrait.php:152
Stack trace:
#0 /vagrant/php7433/webman/app/controller/indexController.php(12): app\controller\WebmanBaseController->success()
#1 /vagrant/php7433/webman/vendor/workerman/webman-framework/src/App.php(319): app\controller\IndexController->index()
#2 /vagrant/php7433/webman/vendor/workerman/webman-framework/src/App.php(168): Webman\App::Webman{closure}()
#3 /vagrant/php7433/webman/vendor/workerman/workerman/Connection/TcpConnection.php(646): Webman\App->onMessage()
#4 [internal function]: Workerman\Connection\TcpConnection->baseRead()
#5 /vagrant/php7433/webman/vendor/workerman/workerman/Events/Event.php(193): EventBase->loop()
#6 /vagrant/php7433/webman/vendor/workerman/workerman/Worker.php(1635): Workerman\Events\Event->loop()
#7 /vagrant/php7433/webman/vendor/workerman/workerman/Worker.php(1426): Workerman\Worker::forkOneWorkerForLinux()
#8 /vagrant/php7433/webman/vendor/workerman/workerman/Worker.php(1400): Workerman\Worker::forkWorkersForLinux()
#9 /vagrant/php7433/webman/vendor/workerman/workerman/Worker.php(1785): Workerman\Worker::forkWorkers()
#10 /vagrant/php7433/webman/vendor/workerman/workerman/Worker.php(1721): Workerman\Worker::monitorWorkersForLinux()
#11 /vagrant/php7433/webman/vendor/workerman/workerman/Worker.php(562): Workerman\Worker::monitorWorkers()
#12 /vagrant/php7433/webman/vendor/workerman/webman-framework/src/support/App.php(131): Workerman\Worker::runAll()
#13 /vagrant/php7433/webman/start.php(4): support\App::run()
#14 {main} [] []
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.