Download the PHP package nmalservet/php-requirements-checker without Composer

On this page you can find all versions of the php package nmalservet/php-requirements-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 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

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

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 :

Via the web page : http://localhost/myapp/php-requirements-checker.php

The result

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

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 : https://getcomposer.org/

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 :

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.

So to check if your requirements are installed, you need to use this url: http://localhost/myapp/my-checker.php

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 :

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


All versions of php-requirements-checker with dependencies

PHP Build Version
Package Version
Requires php Version ^5.3.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nmalservet/php-requirements-checker contains the following files

Loading the files please wait ....