Tag: Composer

Composer is a dependency manager for PHP that simplifies the process of installing, updating, and managing libraries and packages required by PHP applications.

  • PHP: get version details from composer.json

    PHP: get version details from composer.json

    By

    in

    Composer is a tool for dependency management in PHP. It allows PHP developers to easily manage and install the libraries and packages their projects depend on. Composer simplifies the process of including external libraries into PHP projects and helps manage versioning and dependencies. The packages that are required for your project are located in a…

    Read more

  • Composer – PHP Fatal error: Allowed memory size of ## bytes exhausted

    Composer – PHP Fatal error: Allowed memory size of ## bytes exhausted

    By

    in

    Composer may sometimes fail on some commands with this message: In this case, the PHP memory_limit should be increased. Note: Composer internally increases the memory_limit to 1.5G. To get the current memory_limit value, run: Try increasing the limit in your php.ini file (ex. /etc/php5/cli/php.ini for Debian-like systems): Composer also respects a memory limit defined by the COMPOSER_MEMORY_LIMIT environment variable: Or, you can increase the limit with a command-line argument:…

    Read more

  • Composer global verwenden

    Composer global verwenden

    By

    in

    In der Dokumentation zu Composer wird erläutert, wie man global auf composer.phar zugreifen kann, ohne permanent php composer.phar ins Terminal eingeben zu müssen: […] You can place the Composer PHAR anywhere you wish. If you put it in a directory that is part of your PATH, you can access it globally. On unix systems you…

    Read more