Codeigniter and Metricfire - a Codeigniter Library for Awesome MetricsListed under: Awesome Stuff > Check It Out on Tue 13th March 2012
Using the Metricfire raw PHP file as a template (Dave @ Metricfire said it was OK!), I've hacked about with it to form it into a Codeigniter library. This means that all you Codeigniter developers out there can sign up for Metricfire, plug in the Library, and obtain up-to-the-second metrics on your web application. Suh-weet!
Here is the file - download it, unpack it and take a look.
1. Go to the Metricfire site and go to the "Get Early Access" button (it's in Beta as at March 2012, the time of writing) 2. Get your API Key, and save it somewhere on your PC. 3. Copy the downloaded Metricfire_library.php to your CodeIgniter ./application/libraries/ folder 4. Load the library by placing the following into your controller (text in [brackets] are where your settings are input - brackets included so remove them too):
5. From your controller, model, or view, use the following to send a metric:
Notes:
Try it out yourself - it is really very cool.
Comments are closed for this blog entry.
|
Related PostsBlogLatest:
Services |