Skip to content
Helper functions for PHP applications.
PHP Makefile Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.docker
src
tests
.gitignore
CHANGELOG.md
LICENSE.md
Makefile
README.md
composer.json
composer.lock
phpcs.xml.dist
phpstan.neon
phpunit.xml

README.md

helpers

Helpers is a collection of functions commonly used throughout Geeshoe applications.

Helpers is currently in initial development. As such, some documentation and tests may be missing.

Latest Recommended version: v0.3.0 Released December 31st, 2019

Test coverage: 100%.

   Time: 44 ms, Memory: 6.00 MB
   
   OK (33 tests, 33 assertions)

While in initial development, the master branch contains all project files. Once helpers is in a stable state for initial release, the master branch will no longer include development files. I.e. phpunit.xml, .docker, Makefile, etc...

Getting Started

Helpers is intended to be fully compliant with PSR-1, PSR-2, & PSR-4

Prerequisites

  • PHP 7.1+

Installing

To add Helpers to your project, run:

composer require geeshoe/helpers

Usage

All helper functions are available as static method's. Usage is as simple as

$result = Geeshoe\Helpers\Files\FileHelpers::checkIsRW(/path/to/file/);

Documentation

More extensive documentation on Helpers is to be released soon. In the meantime, all of the methods and properties are well documented within the code base.

Development

Docker containers are provided for development purposes. To use the containers, copy .docker/.env.DIST to .docker/.env, .docker/xdebug-DIST.ini to .docker/php-cli/xdebug.ini and update their respective values.

A Makefile is provided to assist in managing the containers as well as running phpunit, php-cs, and phpstan within the workspace container.

From the project root directory, typing make on the command line will print available make commands.

Helpers was developed on Debian Buster and as such any associated docker, make, etc. files have not been tested in other environments.

Authors

Source available at (https://github.com/geeshoe/helpers)

For questions, comments, or rant's, drop me a line at

jr (at) geeshoe (dot) com
You can’t perform that action at this time.