Category Archives: php

Zombie.JS (the brilliant testing tool) and PHP

“Zombie.js is a lightweight framework for testing client-side JavaScript code in a simulated environment. No browser required.” Source: I think this quote is absolutely true. I’d like to show some examples how you can use Zombie.js and PHP together. You will need … Continue reading

Posted in ajax, node.js, php, Uncategorized | Tagged , , , | 1 Comment

Getting started with selenium & PHP

If you want to use Selenium from your PHP application you could try the php-webdriver project: 1. Create directory into your work or home directory and intsall php-webdriver. 1: mkdir selenium_test 2: cd selenium_test 3: git clone git:// 2. Download Selenium … Continue reading

Posted in php, selenium | 4 Comments

PHP: how to query sharing and likeing count from Facebook, Twitter, Google Plus

/** * * @param string $content_url */ public static function getFacebookShareCount( $content_url=” ) { if ($content_url == ”) return 0; $result = array(); $url = “”.urlencode($content_url); $xml = file_get_contents($url); $xml = simplexml_load_string($xml); $result[‘share’] = (int)$xml->link_stat->share_count; $result[‘like’] = (int)$xml->link_stat->like_count; $result[‘comment_count’] = … Continue reading

Posted in Facebook, Google Plus, php, shared content, Twitter | Leave a comment