Download the PHP package abollinger/helpers without Composer

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

Abollinger/Helpers

Provides some usefull PHP functions to help developpers in their daily work.

Total Downloads Latest Stable Version License

Getting started

Installation

You can easily add this library in your project using Composer:

Or add it manually in your file.

Usage

Here are all the function you can, showd in the Classes tree they belong to:

Functions in the Classes tree
  • Abollinger/
    • Helpers::
      • cleanArray($array)
      • printArray($array, $classes)
      • defaultParams($default, $array)
      • getYaml($filePath)
      • getScan($dir, $rootDir, $allData)
      • isAssociativeArray($array)
      • largestElementInArray($array)
      • defineConstants($array)
      • getAppSubdirectory($appRoot, $documentRoot)
      • getAppCompleteHost()
    • Parsedown::
      • extends the erusev/parsedown library

cleanArray

Function that clean an array of parameters using the htmlspecialchars functions, to avoid the risk of XSS attacks.

Example :

printArray

Render PHP array into a HTML ul list

Example :

defaultParams

Function that create an array of default value that will be replace by the client value when exist

Example:

getYaml

Yaml files reader returning the content as a array. Base on Symfony/Yaml package.

getScan

Scan a directory and return an array of all paths. Escape the .class.php files.

isAssociativeArray

Function that evaluate if an array is Associative (ex.: ["key1" => "value1", "key2" => "value2"]) or not (["value1", "value2"]).

largestElementInArray

Function that determine the max lenght among elements of an array

defineConstants

Defines constants from an associative array if they are not already defined.

getAppSubdirectory

Function that returns the subdirectory path of an application relative to the document root.

getAppCompleteHost

This function returns the complete host URL of the current application.

Parsedown

Extends the erusev/parsedown library by adding # in the title, so the anchor links can work.

Classes tree

Licence

This library is licensed under the MIT License. For full license details, see the LICENCE file distributed with this source code.

Author

Antoine Bollinger Email: [email protected]

For contributions, issues, or feedback, feel free to contact the author or open a GitHub issue.


All versions of helpers with dependencies

PHP Build Version
Package Version
Requires symfony/yaml Version ^7.0
erusev/parsedown Version ^1.7
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 abollinger/helpers contains the following files

Loading the files please wait ....