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
Messages:2
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
phpclasses.org/add_dependency.html

How about, we are able to describe dependencies with other stuff in more detail.
Perhaps a small table: Source, Key, Value
e.g.
Source=pecl
Key=ds
Value= bla bla https://www.php.net/manual/en/ds.installation.php

Source=composer
Key=php-ds/php-ds
Value=bla bla https://packagist.org/packages/php-ds/php-ds

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.

 
For more information send a message to info at phpclasses dot org.