08 Jul 2014
First we need to compose and declare some pattern.
$pattern = "/(\\(\\')(\\s*.*)(\\'\\))/";
Then using preg_replace
function we can get the value inside bracket on array return. Below is the full code example.
$pattern = "/(\\(\\')(\\s*.*)(\\'\\))/";
$value = "foo('bar')";
preg_match($pattern, $value, $matches);
$result = $matches[2];
23 Jun 2014
Codespire Dokumen - Responsive Markdown Viewer
Dokumen is drop-in Markdown document viewer, with minimal setup you can create a beautiful document site from Markdown document and upload it online or use in your application distribution.
21 Jun 2014
The command will return the most recent single tag in git repository.
git describe --tags `git rev-list --tags --max-count=1`
More detail at Coderwall
28 May 2014
I have release an optimize ODBC library package for Laravel 4.1+ which can be install easily through composer by adding below line in your existing composer.json file
"wajatimur/odbc-driver": "dev-master"
You can get detail at below links;
Packagist
Github
26 May 2014
This example show how to add config override of any package in others package or workbench. You have to put this code in your register method in you service provider.
// Get config loader
$loader = $this->app['config']->getLoader();
// Get environment name
$env = $this->app['config']->getEnvironment();
// Add package namespace with path set base on your requirement
$loader->addNamespace('basset', __DIR__.'/../config/basset');
// Load package override config file
$configs = $loader->load($env,'config','basset');
// Override value
$this->app['config']->set('basset::config',$configs);
Source : Coderwall