News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

VilkomenJuist.nl:
Laravel 4 and NodeJs/Redis pub/sub realtime notifications
October 23, 2013 @ 11:48:36

On VilkomenJuist.nl there's a recent post showing you how to create a real-time notification system with PHP using Laravel, NodeJs and Redis.

Currently I am building an application where we can fill in live scores and I needed something to update all my visitors whenever a score has been updated by one of the admins. Whenever an admin updates the score via the Laravel 4 backend I fire an event and publish it to Redis. I've setup a simple NodeJS server which listens to Redis for incoming changes. NodeJS will redirect the message to all Socket.IO clients.

The post has all of the code and configuration you'll need to reproduce the setup. This includes the Laravel Redis config, code for the event handler and the Node server listening for the socket connection.

0 comments voice your opinion now!
redis realtime notification nodejs socketio laravel tutorial configuration

Link: http://www.volkomenjuist.nl/blog/2013/10/20/laravel-4-and-nodejsredis-pubsub-realtime-notifications/

Symfony Blog:
Symfony Website Updates
October 04, 2013 @ 09:05:44

On the Symfony project's blog today there's a new post from Fabien Potencier talking about some updates that have been made to the Symfony website.

There's a few things that got an update including:

  • Translations that were added to the main site
  • A method of aggregation for Symfony-related blogs
  • A Roadmap notification system that lets you set up email notifications on major roadmap changes and releases.

They're still working on the translations, but if you'd like to help you can contribute to their github repository.

0 comments voice your opinion now!
symfony website update translation planet feed roadmap notification

Link: http://symfony.com/blog/symfony-website-updates

Hannes Magnusson:
Query logging and profiling in MongoDB
September 18, 2013 @ 10:25:49

in a previous post Hannes Magnusson introduced the new stream handling notification feature in the MongoDB PHP extension. In his most recent post he elaborates on a subject mentioned in the previous post - query logging and profiling.

In my previous blog post I mentioned that the 1.5.0 release of the MongoDB driver for PHP has improved notification support using the PHP Notification API, and showed off a fairly useless (but fun) progress bar. Now its time for a little bit more practical examples using this system: Query logging and profiling.

He talks about some of the features in his pull request, including the new constants added to help make working with the logging on streams easier. He includes some sample code that handles the logging via an "update" callback function, parsing the log message type and save the related data to a class variable. An instance of this class is then assigned to the "notification" stream and passed in as an additional option when creating the MongoClient connection. He includes an example of querying a basic collection and how to extract the request information from the logging object instance.

0 comments voice your opinion now!
mongodb stream context tutorial log query profile notification api

Link: http://bjori.blogspot.com/2013/09/query-logging-and-profiling-in-mongodb.html

Hannes Magnusson:
PHP Stream Notifications <3 MongoDB
September 17, 2013 @ 09:02:54

In this latest post to his site, Hannes Magnusson looks briefly at an interesting use for PHP's streams functionality - reading data from a MongoDB connection as a streaming resource.

PHP Streams have several pretty nifty features that most people don't really know about; Filters, Wrappers, Context, and Notifications. Documenting these is a bit difficult, and getting the user to discover these features is even more problematic, as these things usually live outside of the normal path (function reference). Maybe I'll blog about these things in the future, but for now I want to talk about the Stream (context) Notifications - or more specifically; Stream Notifications in the MongoDB extension for PHP.

He talks some about what stream notifications are on a basic level and some general use cases for them. From there he moves into the MongoDB world and some changes in the mongodb 1.4 extension over to using streams. He also talks about some of the things coming in the 1.5 version including progress reporting for read/write actions.

0 comments voice your opinion now!
mongodb streams extension nosql notification

Link: http://bjori.blogspot.com/2013/09/php-stream-notifications-mongodb.html

Gonzalo Ayuso:
Sending Android Push Notifications from PHP to phonegap applications
August 06, 2013 @ 10:26:09

Gonzalo Ayuso has a new post today showing how he set up Android push notifications to a Phonegap-based application with PHP.

Last days I've been working within a Phonegap project for Android devices using Push Notifications. The idea is simple. We need to use the Push Notification Plugin for Android. First we need to register the Google Cloud Messaging for Android service at Google's console, and then we can send Push notifications to our Android device.

He includes the steps you'll need to push the notification and the library to make the cURL connection out to the Google messaging platform. He's posted the full code out to github.

0 comments voice your opinion now!
phonegap android push notification google cloud tutorial

Link: http://gonzalo123.com/2013/08/05/sending-android-push-notifications-from-php-to-phonegap-applications

Android Hive:
Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL
October 17, 2012 @ 08:53:04

On the Android Hive there's a recent tutorial posted showing you how to use Google Cloud Messaging and PHP+MySQL to do push notifications on an Android phone.

As per google's documentation "Google Cloud Messaging for Android (GCM) is a service that helps developers send data from servers to their Android applications on Android devices". Using this service you can send data to your application whenever new data is available instead of making requests to server in timely fashion. Integrating GCM in your android application enhances user experience and saves lot of battery power.

You can either follow along with the tutorial via the screencast (and download the code) or you can read through the text version, complete with code snippets, SQL and screenshots to help you along the way. The code for the Android side is included as well.

0 comments voice your opinion now!
push notification android tutorial googlecloudmessaging mysql


AppBackr Blog:
Automated PHP unit testing for lazy coders
August 02, 2011 @ 10:41:59

In a recent post from the AppBackr blog they share a solution they've found for running unit tests automatically for lazy coders using a combination of PHPUnit, Watchr and Growl notifications (OS X-only, obviously).

Now you could run [your] tests manually after each change by typing 'phpunit ', but we were looking for something a little more comfortable. We want to decrease the transactional cost of running the tests as much as possible to make the lives of our engineers more pleasant. Making testing easy is the only way the engineers will run the tests frequently.

Instead they opted for Watchr, a tool that keeps an eye on a list of files looking for a change. When one happens, a process is fired off - in this case a PHPUnit run. To make it even easier to see feedback, they integrated it with Growl to show pass or fail results. He includes the source for his Watchr script to help you get started.

0 comments voice your opinion now!
unittest watchr growl notification yii framework


Gonzalo Ayuso's Blog:
Real time notifications with PHP
March 16, 2011 @ 08:46:23

In a new post Gonzalo Ayuso about a system he's developed to create real-time notifications for PHP applications using a mix of PHP and javascript (jQuery).

Real time communications are cool, isn't it? Something impossible to do five years ago now (or almost impossible) is already available. Nowadays we have two possible solutions. WebSockets and Comet. [...] I prefer to use comet (at least now). It's not as good as websockets but pretty straightforward ant it works (even on IE). Now I'm going to explain a little script that I've got to perform a comet communications, made with PHP.

His little sample application detects when a user has clicked on a link by subscribing to an event and using the javascript callback to send the message of a click event and wait for a response. You can find the complete code for the example over on github.

0 comments voice your opinion now!
notification realtime comet javascript jquery tutorial


Giulio Pons' Blog:
Send push notification to iPhone with PHP and pushme.to
August 11, 2010 @ 13:15:14

In a new post to his blog Giulio Pons talks about how to send push notifications to an iPhone using the pushme.to application installed on the user's phone.

Push service is a technology that allows you to send alerts/notifications to a mobile device. Blackberry has its own push service, iPhone has its own, and also Android devices has their own push services. [...] I want to send push to my iPhone, but I'm not able to develop an iPhone application that receive push alerts, and I don't want to send only email alerts.

You set up the application on your phone and make a widget on their site for your application to use. Included in the post is also the PHP you can use to connect to the pushme.to service (using a curl POST request to send form encoded info to their servers).

0 comments voice your opinion now!
push notification iphone pushmeto service curl


Phil Sturgeon's Blog:
Send iPhone notifications from CodeIgniter
November 23, 2009 @ 15:19:56

Phil Sturgeon has posted a fun little script CodeIgniter users can use to connect their application with Prowl.

Most web-applications currently use automated e-mail's to let an administrator know someting is going on and some applications use Twitter. Why not use iPhone Push Notifications to get an alert to you immediately without having to check a thing?

He threw together a quick library that only requires a username, password and application name to set the messages. You can download the sample library directly from Github

0 comments voice your opinion now!
iphone notification codeigniter



Community Events





Don't see your event here?
Let us know!


laravel install library series configure developer wordpress unittest language code introduction list release interview symfony application threedevsandamaybe api community podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework