Download the PHP package bylexus/php-prereqcheck without Composer

On this page you can find all versions of the php package bylexus/php-prereqcheck. 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-prereqcheck

Build Status

php-prereqcheck

Helper class to create Prerequisite Checks. It allows you to easily create a Prerequisite Check Script for your project, e.g. matching (php) version, installed extensions, settings etc. It also allows you to write your own checks to implement individual checks.

Features

Planned features

Installation using composer

Because this is a "zero" version (0.x.y), composer needs some hints to install this package:

composer.json:

then:

or install it using the --dev flag:

Installation without composer

Just clone the git repo:

Then just require the prereq-loader.php file to setup the autoloader.

Sample usage

For a working example, see example-usage.php.

Built-in Checks

php_version

Checks if the actual PHP version matches a version comparison.

Example:

php_extension

Checks if the given PHP extension is available.

Example:

php_ini

Checks if a given PHP ini setting matches the criteria. Because it is not (always) possible to determine the type of value, a comparison function is needed in the config:

Example:

Possible comparison functions:

dir_writable

Checks if a given dir exists and is writable.

Example:

db_pdo_connection

Checks if a PDO connection to a database can be established.

Example:

Note:

The options array must contain the following keys:

Write your own checks

Writing your own checks is very simple. Just provide a \Prereq\PrereqCheck class and register it with the PrereqChecker. Then you can run the defined check:

Prerequisite (yes, it can check itself :-) )

Version History


All versions of php-prereqcheck with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
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 bylexus/php-prereqcheck contains the following files

Loading the files please wait ....