PHPackages                             nmalservet/php-requirements-checker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nmalservet/php-requirements-checker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nmalservet/php-requirements-checker
===================================

tiny library to check requirements into your PHP application. You must write in the config file my-requirements.php which libraries need to be installed, which folders and files need to be created, then you can execute the script that will show you the status of each requirements.

1.1(9y ago)115[3 issues](https://github.com/nmalservet/php-requirements-checker/issues)LGPL v3PHPPHP ^5.3.3

Since Sep 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/nmalservet/php-requirements-checker)[ Packagist](https://packagist.org/packages/nmalservet/php-requirements-checker)[ Docs](https://github.com/nmalservet/php-requirements-checker)[ RSS](/packages/nmalservet-php-requirements-checker/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

php-requirements-checker
========================

[](#php-requirements-checker)

php-requirements-checker is a php script to integrate in each php software to check if the requirements are good

How to use
----------

[](#how-to-use)

You need to copy the two files php-requirements-checker.php and my-requirements.php into your php application An other method will be to use composer to get the last stable release. Go to the composer section to do it.

Add your own libraries, folders and file to check
-------------------------------------------------

[](#add-your-own-libraries-folders-and-file-to-check)

You need to add your own libraries to check, and folders and file. To do it, edit the file my-requirements.php.

Launch your custom php requirements checker :
---------------------------------------------

[](#launch-your-custom-php-requirements-checker-)

Via the web page :

\##The result You will have a result in an html , like the example below

[![](https://cloud.githubusercontent.com/assets/7512899/18478975/8560e356-79d3-11e6-891c-cb3da42fed14.png)](https://cloud.githubusercontent.com/assets/7512899/18478975/8560e356-79d3-11e6-891c-cb3da42fed14.png)

\#Optional section : Install via Composer Composer is a powerfull tool o install external libraries. If you need to know how composer works, go on this page :

To add this library to your installation via composer, you only need to add "nmalservet/php-requirements-checker" to your "require" section into your composer.json as example below :

```
"require": {
        "nmalservet/php-requirements-checker":"*",
        ...
    },
```

Then, run the command "composer update". Composer will install the library into your "vendor" folder probably.

You need to create your own configuration and call the script from your installation. First copy the file my-requirements.php into your folder, for example "my-own-requirements.php". Open a file, for example my-checker.php then include the configuration file and the script.

```
include ('my-own-requirements.php');
require(__DIR__ . '/../vendor/nmalservet/php-requirements-checker/php-requirements-checker.php');
```

So to check if your requirements are installed, you need to use this url:

\#Optional section : protect your script to check requirements with a restricted access To protect your script, create an .htaccess file into the directory of your "my-checker.php". Then copy the following lines :

```
AuthName "Admin Only"
AuthType Basic
AuthUserFile /var/www/.passwd
require valid-user
 ```

You will need to create a file .passwd into /var/www.
To do it use toe command line tool htpasswd : https://httpd.apache.org/docs/current/programs/htpasswd.html

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3576d ago

Major Versions

v0.1 → 1.12016-09-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7512899?v=4)[malservet nicolas](/maintainers/nmalservet)[@nmalservet](https://github.com/nmalservet)

---

Top Contributors

[![nmalservet](https://avatars.githubusercontent.com/u/7512899?v=4)](https://github.com/nmalservet "nmalservet (14 commits)")

---

Tags

checkdependenciesrequirements

### Embed Badge

![Health badge](/badges/nmalservet-php-requirements-checker/health.svg)

```
[![Health](https://phpackages.com/badges/nmalservet-php-requirements-checker/health.svg)](https://phpackages.com/packages/nmalservet-php-requirements-checker)
```

###  Alternatives

[consistence/consistence

Consistence - consistent approach and additions to PHP's functionality

1821.1M18](/packages/consistence-consistence)[dephpend/dephpend

Dependency analysis for PHP

533102.4k2](/packages/dephpend-dephpend)[craftcms/server-check

Craft CMS Server Check

684.3M5](/packages/craftcms-server-check)[jbzoo/composer-graph

Render composer.json + composer.lock dependencies graph

67743.0k2](/packages/jbzoo-composer-graph)[mmoreram/symfony-bundle-dependencies

Dependencies resolver for Symfony Bundles

57193.7k54](/packages/mmoreram-symfony-bundle-dependencies)[silverstripe/environmentcheck

Provides an API for building environment tests

33511.9k14](/packages/silverstripe-environmentcheck)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
