In reference to this issues on the Warden application (https://github.com/teamdeeson/warden/issues/101), we will need the Warden Drupal module to provide details of any third party PHP libraries and their version details.

Could this be done using the libraries module?
Would a custom regular expression be needed to determine these?
Would it need a variable defined with details of where the libraries are how to find the version number?

Comments

mike.davis created an issue. See original summary.

mike.davis’s picture

As with #2826110: Provide Javascript library version details, I think for the initial release of this, we can add some config to the warden config variables which defines that third party PHP libraries and version number which can then be read by Warden Server.

We can look at the options of automating the list of PHP library versions at a later date.

mike.davis’s picture

Assigned: Unassigned » mike.davis
mike.davis’s picture

In the update for #2826110: Provide Javascript library version details there is a 'js_library' array key which contains this information. We should look at changing this to just be a 'libraries' key, which will then contain a 'js' subkey for the Javascript library version information and a 'php' subkey for the PHP library version information.

Something like:

'libraries' => [
  'js' => [
    'foo' => 1.1,
    'bar' => 5.4,
  ],
  'php' => [
    'fuzz' => 3.2,
    'bazz' => 1.11.8
  ],
];
mike.davis’s picture

Status: Active » Needs review
StatusFileSize
new7.87 KB

Here is the patch for this change.

  • mike.davis committed 2ac7b4e on 8.x-1.x
    Issue #2873554 by mike.davis: Provide PHP third party library version...
mike.davis’s picture

Version: 8.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Patch (to be ported)

This has been committed to the 8.x-1.x branch now so we can get the 7.x branch patch

mike.davis’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new3.5 KB

Here is the patch for 7.x-1. branch

  • mike.davis committed f39a940 on 7.x-1.x
    Issue #2873554 by mike.davis: Provide PHP third party library version...
mike.davis’s picture

Status: Needs review » Fixed

This has now been updated for both 7.x and 8.x branches

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.