PHP Classes

Dependencies with extensions from PECL, PEAR, Composer

Recommend this page to a friend!

      Top level forums  >  Site  >  Features  >  Dependencies with extensions from...  >  (Un) Subscribe thread alerts  
Subject:Dependencies with extensions from...
Summary:How to Descriptive - dependency management
Author:Mat Jung
Date:2020-12-14 18:55:30
Update:2020-12-15 21:59:27

  1. Dependencies with extensions from...   Reply   Report abuse  
Picture of Mat Jung Mat Jung - 2020-12-15 10:38:23
I guess most people will agree.
Often a PHP Class / project depends on something else from pecl, pear,composer or github. Or it requires an external database.

There is the function
Add a new dependency for a class

How about, we are able to describe dependencies with other stuff in more detail.
Perhaps a small table: Source, Key, Value
Value= bla bla

Value=bla bla

Where value may contain an URL to a known source

  2. Re: Dependencies with extensions from...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2020-12-15 21:59:27 - In reply to message 1 from Mat Jung
Hello Matt,

Nowadays many people use composer to express specific dependencies.

If you install a package from the PHP Classes site using composer, even when you do not user composer in your projects, the PHP Classes site will serve a composer.json file to composer, so it can install the package and any dependency packages.