Download the PHP package lyhiving/mmodel without Composer

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

Minimum model for php

php 小模型。

快速实现CRUD操作的小模型

普通版CRUD + 远程CRUD 用于快速开始项目

安装

使用 Composer

用法

  1. 本地使用

  2. 远程使用

服务端:

客户端:

简单模板viewer的使用:

关于远程调用的加密

目前先这样用,远程的地址复杂点就是了。

TODO: 看情况加入渐变验证组件。

关于缓存

缓存实际上使用了 phpfastcache, 一个很不错的缓存包。由于安全相关的问题,目前使用到V8.1.0版本,该版本要求PHP>=7.3, 希望可以兼容多点的PHP版本。

实际上如果非常轻便的开发,甚至连缓存都可以不用。

使用缓存的时候注意,如果更新了表结构需要清除缓存。如果不清,默认15分钟后缓存失效。

关于hprose

目前hprose的作者估计想升级到hprose3.0。但3.0使用的compsoser要求安装ext_hprose扩展,这个对于部分同学部署起来并不友好。因此我限制使用2.0.40的版本,该版本不需要安装相关的扩展。

啰嗦一句,其实Andot 弄这个hprose很久的了,我也很早的时候就用上了。多久?那个时候还叫PHPRPC的时候 :)

hprose支持很多语言,性能很很帅,可惜文档就是不给力。作者也是维护多语言版本,生态没弄好。希望hprose会好起来。


All versions of mmodel with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-gd Version *
phpfastcache/phpfastcache Version >=8.1.0
hprose/hprose Version 2.0.40
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 lyhiving/mmodel contains the following files

Loading the files please wait ....