Sunday, May 10, 2015

Sheduling artisan commands

Find app/console/Kernel.php@shedule method
...
$shedule->command('namespace:command_name')->daily();
...
Artisan CLI - Laravel - The PHP Framework For Web Artisans: " Guzzle 5 "

guzzle/guzzle - Php library for http request inclidng async

Used in Laravel 5

$shedule->command('mycommands:dosomething')->thenPing('http:\\somehost\api\event');

Monday, May 4, 2015

Sunday, May 3, 2015

Scala Language

https://www.coursera.org/course/progfun
https://class.coursera.org/reactive-002

Saturday, May 2, 2015

FullStackAcademy

$15.000 semester
Node.js/express Angular, html5, CSS3

http://www.fullstackacademy.com/flex-immersive

Thursday, April 30, 2015

php - Calling the variable property directly vs getter/setters - OOP Design - Stack Overflow

php - Calling the variable property directly vs getter/setters - OOP Design - Stack Overflow:

abstract class Object
{
    public function __call($method, $args)
    {
        $key = '_' . strtolower(substr($method, 3, 1)) . substr($method, 4);
        $value = isset($args[0]) ? $args[0] : null;
        switch (substr($method, 0, 3)) {
            case 'get':
                if (property_exists($this, $key)) {
                    return $this->$key;
                }
                break;

            case 'set':
                if (property_exists($this, $key)) {
                    $this->$key = $value;
                    return $this;
                }
                break;

            case 'has':
                return property_exists($this, $key);
                break;
        }

        throw new Exception('Method "' . $method . '" does not exist and was not trapped in __call()');
    }
}