Skip to content

intrd/php-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages