for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SocialLinks\Providers;
class Meneame extends ProviderBase implements ProviderInterface
{
protected $domain = 'http://meneame.net';
/**
* {@inheritdoc}
*/
public function shareUrl()
return $this->buildUrl(
"{$this->domain}/submit.php",
array('url')
);
}
public function shareCountRequest()
return static::request(
$this->buildUrl(
"{$this->domain}/api/url.php",
)
public function shareCount($response)
$result = explode(' ', $response);
if (isset($result[0]) && $result[0] === 'OK') {
return intval($result[2]);
return 0;