#!/usr/bin/env php <?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view * the license that is located at the bottom of this file. */ // Avoid APC causing random fatal errors per https://github.com/composer/composer/issues/264 if (extension_loaded('apc') && ini_get('apc.enable_cli') && ini_get('apc.cache_by_default')) { if (version_compare(phpversion('apc'), '3.0.12', '>=')) { ini_set('apc.cache_by_default', 0); } else { fwrite(STDERR, 'Warning: APC <= 3.0.12 may cause fatal errors when running composer commands.'.PHP_EOL); fwrite(STDERR, 'Update APC, or set apc.enable_cli or apc.cache_by_default to 0 in your php.ini.'.PHP_EOL); } } Phar::mapPhar('composer.phar'); require 'phar://composer.phar/bin/composer'; __HALT_COMPILER(); ?>
composer is a PHP dependency management tool. The minimum version of PHP requires 5.3.2. Openssl extension needs to be allowed. When compiling, add the parameter --with-openssl
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article
16 May 2016
AppBaseJs class library. One is written based on commonly used functions and other js libraries on the Internet to facilitate everyone's call.
14 May 2023
As a popular server-side scripting language, PHP has been developing for decades. In the process, it has accumulated a large number of community resources and third-party libraries, which can be easily applied to various projects. Of course, if you want to reuse these libraries in PHP projects, it is crucial to resolve dependency issues. The latest version of PHP 8.0 has been released, and Composer is a simple and popular autoloading library. Composer can make it easier for projects to use third-party libraries, thereby reducing code
14 Apr 2020
Class libraries are the core part of ThinkPHP, and ThinkPHP manages all system class libraries together through the concept of base class libraries. The core base class library includes basic classes and common tool classes necessary to complete the universal development of the framework.
19 Nov 2019
Class libraries in Java refer to the powerful classes officially provided by Java to developers. These classes are placed in various packages and released together with the JDK. These class libraries can be used directly in project development.
13 Jul 2016
PHP calls the dll class library method developed in C#. PHP calls dll class library methods developed in C#. Sometimes, we need to use dll class libraries written in other languages in php, such as dlls written in C#. The method is to use the PHP new COM method to call.
05 Jun 2024
Question: How does Composer simplify PHP library installation and dependency management? Answer: Install and update PHP libraries. Manage library dependencies. Generate autoloaders to simplify library usage.
Hot Tools
PHP library for dependency injection containers
PHP library for dependency injection containers
A collection of 50 excellent classic PHP algorithms
Classic PHP algorithm, learn excellent ideas and expand your thinking
Small PHP library for optimizing images
Small PHP library for optimizing images