Download the PHP package puweiyuer/sworm without Composer

On this page you can find all versions of the php package puweiyuer/sworm. 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 sworm

Sworm - 基于Swoole的异步MySQL数据库ORM框架

License PRs Welcome GitHub stars GitHub forks

Sworm是一个基于Swoole的异步MySQL调用的ORM数据库框架。该框架封装了swoole_mysql,API与NotORM很相似。使用Sworm能更加轻松地生成查询语句,使代码结构更加清晰,返回更加规范。 任何问题 QQ: 529189858 或者 mailto: [email protected]

环境要求

Sworm的至少工作在以下环境:

快速入门

初始化

在使用Sworm前,请确保已先include源码包根目录下的Sworm.php

连接

断开连接

徒手Query

获取表对象

成员属性方式获取

table方法获取

注意:这里表名前会自动加上connect时填写的prefix前缀参数。则实际上这里访问的表是sw_user。

表对象:基本操作

以下方法使用没有先后顺序限制,Sworm会在最终查询时自动生成正确的顺序。

(1) SELECT

(2) WHERE

同理还有Sworm_NotIn、Sworm_NotLike、Sworm_RegExp(正则表达式)、Sworm_Literal(原式)

(3) ORDER BY

单个字段排序:

多个字段排序:

(4) LIMIT

按数量限制:

按数量和偏移量限制(请注意:先数量、再偏移量,与MySQL语句顺序相反):

(5) GROUP BY和HAVING

不带HAVING:

带HAVING:

表对象:查询 (Retrieve)

(1) 获取结果数组:fetch

(2) 计数:count

(2) 求和:sum

(3) 最大值:max

(4) 最小值:min

表对象:插入 (Insert)

表对象:更新 (Update)

表对象:删除 (Delete)

统一的回调函数参数 $ret

Sworm使用回调函数实现异步,所有回调函数都应统一接受一个 $ret 参数。当请求执行完成后进行回调时,Sworm将会把请求结果封装成一个 Sworm_Result 对象并作为参数传递给回调函数。

Sworm_Result 对象的成员如下:

事务


All versions of sworm with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.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 puweiyuer/sworm contains the following files

Loading the files please wait ....