Download the PHP package mmhk/vendor-phar without Composer

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

Vendor-Phar

composer 所有依赖的 vendor 打包成一个vendor.phar

安装

运行

In project root folder.

注意:phar扩展默认ini配置是只读的,使用vendor-phar需要禁用 phar.readonl 禁用方式可以修改 ini 文件 phar.readonly=0 或者在PHP cli 执行的时候加上 -d phar.readonly=0

vendor-phar.json 配置文件结构

注意

由于 composer 自动生成的一堆 Autoloader 都指定了的project root,所以 vendor-phat 会修改 autoload_classmap.php/ autoload_files.php / autoload_namespaces.php / autoload_psr4.php / autoload_static.php, 将 project root 引用到 phar 包里面 .mount 目录,并通过 Phar::mount 将真实的 project root 挂载到 phar 包里面的 .mount

基于以上修改,vendor.phar 并不能随便移动位置!! 移动之后将会导致 composer 生成的 autoloader 失效。


All versions of vendor-phar with dependencies

PHP Build Version
Package Version
Requires ulrichsg/getopt-php Version ^3.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 mmhk/vendor-phar contains the following files

Loading the files please wait ....