public function ezCount($stat, $count = 1)
    {
        if (! isset($this->config['ez_key'])) {
            throw new Exception('StatHat EZ key not set.');
        }

        // If a prefix is set, prepend it to the stat name.
        if (! empty($this->config['prefix'])) {
            $stat = $this->config['prefix'].$stat;
        }

        $this->post('ez', ['ezkey' => $this->config['ez_key'], 'stat' => $stat, 'count' => $count]);
    }
public function ezCount($stat, $count = 1)
    {
        if (! isset($this->config['ez_key'])) {
            throw new Exception('StatHat EZ key not set.');
        }

        // If a prefix is set, prepend it to the stat name.
        if (! empty($this->config['prefix'])) {
            $stat = $this->config['prefix'].$stat;
        }

        $this->post('ez', ['ezkey' => $this->config['ez_key'], 'stat' => $stat, 'count' => $count]);
    }
public function ezCount ( $ stat , $ count = 1 ) { if ( ! isset ( $ this -> config [ 'ez_key' ] ) ) { throw new Exception ( 'StatHat EZ key not set.' ) ; } // If a prefix is set, prepend it to the stat name. if ( ! empty ( $ this -> config [ 'prefix' ] ) ) { $ stat = $ this -> config [ 'prefix' ] . $ stat ; } $ this -> post ( 'ez' , [ 'ezkey' => $ this -> config [ 'ez_key' ] , 'stat' => $ stat , 'count' => $ count ] ) ; }
Increment a counter using the EZ API.

@see https://www.stathat.com/manual/send#ez
@param string $stat - Unique stat name
@param int $count - Number you want to count
@throws \Exception
Increment a counter using the EZ API .