The first assignment is to create a microblog application.
You can use Silex if you want, but it's not a requirement.
- Display the latest 5 articles on the homepage
- Create an authentication section where someone can
./vendor/bin/phpunit | |
PHPUnit 4.8.27 by Sebastian Bergmann and contributors. | |
............................................................. 61 / 1623 ( 3%) | |
............................................................. 122 / 1623 ( 7%) | |
............................................................. 183 / 1623 ( 11%) | |
............................................................. 244 / 1623 ( 15%) | |
............................................................. 305 / 1623 ( 18%) | |
............................................................. 366 / 1623 ( 22%) | |
............................................................. 427 / 1623 ( 26%) |
<?php | |
$community = array ( | |
'http://blob.phpdev.nu/elephpone/michelangelo_vandam.mp3', | |
'http://blob.phpdev.nu/elephpone/tessa_mero.mp3', | |
'http://blob.phpdev.nu/elephpone/khayrattee_wasseem.mp3', | |
'http://blob.phpdev.nu/elephpone/cal_evans.mp3', | |
'http://blob.phpdev.nu/elephpone/thijs_feryn.mp3', | |
'http://blob.phpdev.nu/elephpone/gabriel_somoza.mp3', | |
'http://blob.phpdev.nu/elephpone/beth_tucker_long.mp3', | |
); |
The first assignment is to create a microblog application.
You can use Silex if you want, but it's not a requirement.
This document provides links to all services mentioned in my presentation "The Continuous PHP Pipeline".
Verifying that +dragonbe is my blockchain ID. https://onename.com/dragonbe |
<?php | |
abstract class AbstractModel { | |
public function toArray($includeProtected = false) | |
{ | |
if ($includeProtected == true) { | |
return get_object_vars($this); | |
} | |
// Wrapping this object in a closure changes the lexical scope, which | |
// allows us to easily return only public properties. |
<?php | |
class Nik | |
{ | |
public $name; | |
protected $_function; | |
private $_age; | |
private function _getProperties() |
<?php | |
class In2it_View_Helper_GoogleTracker extends Zend_View_Helper_Abstract | |
{ | |
public $view; | |
public function setView(Zend_View_Interface $view) | |
{ | |
return parent::setView($view); | |
} |
public function listCdnEndpoints() | |
{ | |
$context = new HttpCallContext(); | |
$context->setMethod(Resources::HTTP_GET); | |
$context->setPath($this->_getCdnEndpointsPath()); | |
$context->addStatusCode(Resources::STATUS_OK); | |
// echo '<pre>' . var_export($context,1) . '</pre>';die; | |
$response = $this->sendContext($context); |
phpbook:zf2demo dragonbe$ php composer.phar install --dev | |
Loading composer repositories with package information | |
Installing dependencies | |
- Installing zendframework/zendframework (2.0.2) | |
Downloading: 100% | |
Loading composer repositories with package information | |
Installing dev dependencies | |
Nothing to install or update | |
zendframework/zendframework suggests installing doctrine/common (Doctrine\Common >=2.1 for annotation features) |