This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Chencha Jacob Gisore | |
* @link www.chenchatech.com | |
*/ | |
require_once 'queue_manager.php'; | |
require_once 'helpers.php'; | |
$controller = new Controller(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Loops array using array walk/ map | |
*/ | |
class LoopMap extends Loops { | |
function __construct($array) { | |
$this -> array = $array; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer create-project laravel/laravel --prefer-dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "laravel/laravel", | |
"description": "The Laravel Framework.", | |
"keywords": ["framework", "laravel"], | |
"require": { | |
"laravel/framework": "4.0.*" | |
}, | |
"autoload": { | |
"classmap": [ | |
"app/commands", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Register The Laravel Class Loader | |
|-------------------------------------------------------------------------- | |
| | |
| In addition to using Composer, you may use the Laravel class loader to | |
| load your controllers and models. This is useful for keeping all of | |
| your classes in the "global" namespace without Composer updating. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hard to read the data | |
* Repeated values | |
* Lacks intent | |
*/ | |
class Customer { | |
function amountInvoicedIn($start_date, $end_date) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use DateRange; | |
/** | |
* Easy to read | |
* Easy to refactor | |
* Easy to mock and test | |
*/ | |
class Customer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE'users' ( | |
'id' int(10) unsigned NOT NULL AUTO_INCREMENT, | |
'password' text COLLATE utf8_unicode_ci NOT NULL, | |
'email' varchar(45) COLLATE utf8_unicode_ci NOT NULL, | |
PRIMARY KEY ('id') | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
*/ | |
namespace Events; | |
use User; | |
class SentryUserAction { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SimpleTitleParse implements TitleParserInterface { | |
function getTitle($url) | |
{ | |
$url_parts=explode('/',$url); | |
$title=array_pop($url_parts); | |
return $title; | |
} | |
} |
OlderNewer