src/Token.php
public function generate($key)
    {
        $this->set($key, md5(uniqid(rand(), true)));
        $this->setTime($key, time() + 3600);

        return $this;
    }
public function generate($key)
    {
        $this->set($key, md5(uniqid(rand(), true)));
        $this->setTime($key, time() + 3600);

        return $this;
    }
public function generate ( $ key ) { $ this -> set ( $ key , md5 ( uniqid ( rand ( ) , true ) ) ) ; $ this -> setTime ( $ key , time ( ) + 3600 ) ; return $ this ; }
@param string $key

@return $this
@param string $key