Download the PHP package idrunk/dce without Composer

On this page you can find all versions of the php package idrunk/dce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dce

DCE

Dce是一款基于PHP8开发的网络编程框架,支持传统Cgi式Web编程及命令行工具编程,也支持Swoole下常驻内存式Web编程与长连接服务器编程,并且设计了一套通用的RCR架构处理所有类型网络编程,让你的应用项目保持清晰整洁,助你轻松编写出易复用、好维护的代码。

RCR架构流程图

Dce还有很多特色功能,其中最为重量级的是 分库中间件,可以让你轻松实现分库查询。除此之外还提供有负载均衡连接池、远程过程调用、ID生成器、并发锁、会话管理器等特色功能,这些功能依赖Swoole,Dce作者也强烈推荐你在Swoole下使用Dce,配合其多进程协程模式,可以将你的服务器性能发挥到极致。

当然,除了上述功能外,如模型、校验器、缓存器、事件、查询器、活动记录等这些常规的功能模块也必不可能缺少。

开始使用

获取

取用例

使用命令行工具

执行一个空命令

在有Swoole的Linux下启动Websocket服务器

JS连接Websocket服务

使用Redis连接池

RedisProxy会自动根据环境判定从实例池取还是新建连接,若使用实例池,则会自动取还。

数据库查询

分库查询需要进行分库规则配置,但查询方法和普通查询没区别,所以下述示例也适用于分库查询。


通过上述的简介,相信你对Dce已经有了一个初步认识,Dce的玩法远不止这些,你可以点击这里继续深入了解。


All versions of dce with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
swoole/ide-helper Version @dev
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package idrunk/dce contains the following files

Loading the files please wait ....