Download the PHP package lfphp/porm without Composer

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

PORM

PORM基于PHP5.6以上环境开发测试

PHP 数据库ORM抽象库,用于PHP程式独立使用数据库时,方便以ORM方式进行编码。PORM当前仅支持MySQL,且以MySQLi或PDO方式进行链接(建议使用PDO),请用户确保PHP中正确安装相应扩展。

1. 快速安装

2. 方法调用

PORM 支持通过定义ORM Model类方式进行调用,也支持直接链接数据库方式进行调用。

2.1 ORM方式

2.2 数据库操作

3. 其他

3.1 注解规则

通过在Model中引入使用AttributeAnnotation类,可自动根据当前类注释,生成DBAttribute注解。

此时,需保证类注释规则包含以下类型注解:

  1. @property string $name 名称(名称备注)

    3.2 数据库重连支持

    在数据库配置中添加 max_reconnect_count 项目,可以设置数据库在丢失连接时(非首次连接)自动重新连接数据库。


All versions of porm with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
ext-mbstring Version *
ext-pdo Version *
ext-json Version *
ext-mysqli Version *
lfphp/logger Version ^1.1
lfphp/pdodsn Version ^0.0.13
lfphp/func Version ^1.2
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 lfphp/porm contains the following files

Loading the files please wait ....