Download the PHP package rayful/db-manager without Composer

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

DBmanger

最好用的MongoDB管理ORM

安装:

STEP 1 define Mongo Host and DB(一般放在全局的配置文件内)

STEP2 生成子类,一个表需要建立三个类(建议配合PHPStorm来创建子类,将得到需要实现什么方法的提示)

例子:数据库里面的Job表

Database Manager,数据库管理器

建议目录:src/Job/JobManager.php


DataModel:数据结构的定义及单条记录的操作

建议目录:src/Job/Job.php


DataSet Class:数据集

建议目录:src/Job/Jobs.php

STEP3 编写应用业务场景

这个方法将直接读取$_REQUEST全局变量来决定搜索、排序、限制个数将使用什么条件.

重要 使用这个方法必须是在后台,前台使用不过滤$_REQUEST会有被注入的危险

只要在Jobs类编写request{变量名称}()的方法,就能直接处理$_REQUEST的参数 比如:

等同于执行代码:

DataSet基类自带有五个默认的_request_方法,只要前端按照这个request key来编写,将能自动处理request过来的参数

(所以如果调用readRequest()方法,请注意前端传递过来的变量名称和值类型要符合以下规则)


All versions of db-manager with dependencies

PHP Build Version
Package Version
Requires rayful/pagination Version ^1.0
rayful/toolkit Version 1.2.3.1
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 rayful/db-manager contains the following files

Loading the files please wait ....