Download the PHP package prince/swoole-think-orm without Composer

On this page you can find all versions of the php package prince/swoole-think-orm. 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 swoole-think-orm

swoole-think-orm

适应swoole协程环境运行的think-orm

为什么有这个项目:

测试环境:

建议使用docker环境,需要安装docker,docker-compose

项目内有docker-compose.yml

运行docker-compose up -d

然后进入容器docker exec -it swoole bash

安装:

composer require prince/swoole-think-orm

使用:和think-php orm使用一致,详见文档

Db类用法:

\think\facade\Db::connect($config)

\think\facade\Db::table('user')->find();

其它操作参考TP5.1的完全开发手册数据库章节

特性:

1、支持swoole协程环境。

2、惰性连接池,直到查询时才会创建连接池,可以在配置中设置维持连接数。

3、支持根据配置创建多个连接池,支持关闭连接池。

4、连接池支持事务处理,事务结束前不会更换连接。

5、支持orm游标查询,处理大量数据。

6、“无感”连接池,连接池使用无感知,自动获取连接,自动回收连接,无需手动处理。

7、兼容think-orm 2.0使用,无需学习新的orm用法,无任何心智负担。

注意:

1、不建议使用模型、事件回调,暂未对相关功能协程化处理。

2、log,查询次数等数据暂不可用。

3、暂时不支持execute($sql)


All versions of swoole-think-orm with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
topthink/think-cache Version v2.0.1
topthink/think-container Version v2.0
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 prince/swoole-think-orm contains the following files

Loading the files please wait ....