intrd/php-common

php - intrd common functions

1.0 2016-05-05 04:47 UTC

This package is not auto-updated.

Last update: 2024-05-11 23:18:53 UTC


README

php - intrd common functions
Package intrd/php-common
Version 1.0
Tags php, intrd, common
Project URL https://github.com/intrd/php-common
Author intrd - http://dann.com.br
Copyright (CC-BY-SA-4.0) 2016, intrd
License Creative Commons Attribution-ShareAlike 4.0
Dependencies • php >=5.3.0

System & Composer installation

$ sudo apt-get update & apt-get upgrade
$ sudo apt-get install curl php-curl php-cli
$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Usage sample

Assuming your project are running over Composer PSR-4 defaults, simply Require it on your composer.json

"require": {
    "intrd/php-common": ">=1.0.x-dev <dev-master"
}

And run..

$ composer install -o #to install
$ composer update -o #to update

Always use -o to rebuild autoload.

Now Composer Autoload will instance the class and you are able to use by this way..

require __DIR__ . '/vendor/autoload.php';
use php\intrdCommons as i;

$test="works!";
i::vd($test); //testing my var_dump() customized function