search
HomePHP LibrariesOther librariescomposer-RatchetPHP class library
composer.RatchetPHP class library
#!/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


Disclaimer

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

AppBaseJs class library commonly used javascript functions on the Internet and other js class libraries written_js object-orientedAppBaseJs class library commonly used javascript functions on the Internet and other js class libraries written_js object-oriented

16May2016

AppBaseJs class library. One is written based on commonly used functions and other js libraries on the Internet to facilitate everyone's call.

Automatic loading library in PHP8.0: ComposerAutomatic loading library in PHP8.0: Composer

14May2023

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

Add your own class library in thinkphp5Add your own class library in thinkphp5

14Apr2020

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.

What is a class library in javaWhat is a class library in java

19Nov2019

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.

PHP calls the dll class library method developed by C#, _PHP tutorialPHP calls the dll class library method developed by C#, _PHP tutorial

13Jul2016

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.

How does Composer simplify PHP library installation and dependencies?How does Composer simplify PHP library installation and dependencies?

05Jun2024

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.

See all articles