Download the PHP package mongdch/mon-container without Composer

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

mon-container

基于PHP的工厂服务容器, 只要实现以下功能:

安装

文档说明

获取实例

例子:

注册绑定服务

Container bind($abstract, $server = null)

注意:register方法只支持直接的数组注册

参数说明:

参数名 是否必须 类型 说明
abstract array string 类名称或标识符或者数组, 数组则批量注册
server string instance 要绑定的实例

例子:

判断容器中是否存在某个类或标识

bool has($name)

参数说明:

参数名 是否必须 类型 说明
name string 类名称或标识符

例子:

获取实例或者结果集

any make($name, $vars = [], $new = false)

参数说明:

参数名 是否必须 类型 说明
name string 类名称或标识符
vars array 绑定的参数
new bool 是否保存实例

例子:

更多用法请查看examples/index.php

版本

1.0.0

1.0.1


致谢

感谢您的支持和阅读,如果有什么不足的地方或者建议还请@我,如果你觉得对你有帮助的话还请给个star。


关于

作者邮箱: [email protected]

作者博客: http://blog.gdmon.com


All versions of mon-container with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.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 mongdch/mon-container contains the following files

Loading the files please wait ....