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

SitePoint PHP Blog:
Dart and PHP A Legacy Animal Guess Game
December 10, 2013 @ 11:54:40

The SitePoint PHP Blog has a new tutorial posted today showing an interesting combination of technologies to create a simple Animal Guesssing Game - using Dart as the frontend and PHP as the backend.

Back when I was learning programming on Apple II using BASIC, there was an Animal Guess Game. This game was a very primitive AI game: the computer tries to ask a few YES/NO questions and receives the answer from the user. Based on the answer, it may ask more Y/N questions until it tries to guess the animal. In this tutorial, we will learn how to re-vitalize this program using PHP as backend and Dart as frontend. Of course, a database will be used to store all the questions and guesses of animals.

He walks you through the database setup (including table definitions) and provides some simple PDO-based code to connect and fetch results. Then comes the Dart frontend. He goes through the installation and configuration and how to make a new Polymer application, also including the markup and Dart code to make the backend connection.

0 comments voice your opinion now!
dart animal guess game backend frontend tutorial

Link: http://www.sitepoint.com/dart-php-legacy-animal-guess-game

Greg Freeman:
Your PHP Framework Choice doesn't Matter
August 22, 2013 @ 11:45:18

In this new post Greg Freeman suggests something contrary to what most PHP developers (and framework supporters) believe - your choice of PHP frameworks doesn't matter...if you're basing it on speed.

I'm talking about the speed of PHP and more specifically, evaluating frameworks and tools based on "speed". If you have been in the PHP developer community for more than a few months, you would have seen at least a few discussions about what the fastest PHP framework is, as if this were one of the first key metrics you should evaluate first when choosing a framework for your team. You may even be contemplating switching from your current framework because you heard of a new framework that is faster. In the rest of this article, I'm going to do my best to show you why this not the best line of thinking and provide alternate and in my opinion better metrics for evaluating tools.

He talks about "frontend" versus "backend" PHP developers and how most PHP devs fit into the first category, not knowing how their applications really execute on the backend. This includes a pretty high-level concept of "speed." For his examples, he sets up a WordPress instance and fills it with some dummy content. He illustrates how, with a bit of tweaking on the "backend" side of things (server, environment, etc) the performance of the application can be greatly varied. He includes the specs for the environment he ran the tests in, some of the things he changed and a summary of the results.

0 comments voice your opinion now!
framework choice speed benchmark frontend backend environment

Link: http://www.gregfreeman.org/2013/your-php-framework-choice-doesnt-matter

php[architect]:
July 2013 Issue - Front End Development
July 25, 2013 @ 11:28:57

php[architect] has published their July 2013 edition of the magazine with a focus on "Front End Development".

Front end development is usually the last consideration for web developers, but it's just as important as the server-side functionality. In some ways, it's more [immediately] important, because it's the functionality the end user interfaces with. Unless you have a wunderkind designer that can also code, this is a task for you.

This month's issue covers technologies, techniques, and concerns that deal with modern front end coding. Frameworks that simplify coding across platforms like jQuery Mobile and Sencha Touch are discussed in "jQuery Mobile: Cross-Platform Sites Made Easy" and "Create an App to Touch the Web".

Other topics included in this issue are polyfills in HTML5, automated deployment and the second part of a series looking at using Stripe for payments.

0 comments voice your opinion now!
phparchitect frontend development release july2013

Link: http://www.phparch.com/2013/07/phparchitect-magazine-july-2013-front-end-development

Gonzalo Ayuso:
Working with AngularJS and Silex as Resource provider
June 04, 2013 @ 09:57:47

Gonzalo Ayuso has a new post to his site looking at the use of Silex and AngularJS together to make Resources that AngularJS can pull data from.

This days I'm playing with AngularJS. Angular is a great framework when we're building complex front-end applications with JavaScript. And the best part is that it's very simple to understand (and I like simple things indeed). Today we are going to play with Resources. Resources are great when we need to use RestFull resources from the server. In this example we're going to use Silex in the backend. Let's start.

He shows how to get the Resource functionality working in AngularJS (including another file) and a sample SQL table definition to hold some author/message information. He includes the HTML for the one page the example needs and the various pieces - the Javascript controller, the Silex routes, the routing configuration and the Resource controller. A screencast and the complete code are also provided.

0 comments voice your opinion now!
silex angularjs resource rest tutorial screencast frontend

Link: http://gonzalo123.com/2013/06/03/working-with-angularjs-and-silex-as-resource-provider

Matt Frost:
Starting with Selenium (and Headless on a VM)
August 27, 2012 @ 08:16:55

Matt Frost has posted a two part series of some of his experiences in setting up Selenium to execute it in a VM and run tests on your application.

I was a little scared when it came to setting up Selenium, I figured it was going to be difficult to setup and configure. So I was pleasantly surprised when it really wasn't. So here are a few of the mistakes I made; since I use Vagrant to do all my development I actually grabbed Selenium and started from there. Not a good place to start, although as I found out later; not a total dead end.

He includes the initial setup of things like PHPUnit and the Selenium .jar file as well as a sample test that loads a page and checks the title of the page. His second post shows how to set it up in the VM (using Vagrant, xvfb to capture the output and Firefox to execute the tests).

0 comments voice your opinion now!
selenium frontend testing vm vagrant firefox java xvfb


PHPClasses.org:
Using DaDaBIK to create a PHP CRUD Database Front-End without coding
May 10, 2012 @ 09:16:23

On the PHPClasses.org blog there's a recent post about using the DaDaBIK project to automatically generate a database CRUD frontend without having to code any of it by hand.

Writing CRUD database front-ends and simple database applications is a very common task that almost all PHP developers need to implement. It is usually a simple job to accomplish, but is also time consuming, boring and error-prone to implement. Software developer's tend to avoid time wasting and repetitive tasks in favor of more challenging tasks. This lead to the development of applications with the goal to automate front-end development. DaDaBIK is one of the precursors of this kind of applications for automated creation of PHP front-ends. Released initially in the year 2000 by myself, Eugenio Tacchini, the project continues to be actively developed until today.

Included in the post are a few screenshots of the interface and a screencast showing it in use. You can find out more about the project on the DaDaBIK website.

0 comments voice your opinion now!
dadabik project crud database frontend generate code


Shashikant Jagtap's Blog:
Enjoy 'MinkExtension' for Behat
May 08, 2012 @ 10:55:55

In this new post to his blog Shashikant Jagtap talks about a new extension for Behat (the BDD testing tool) that makes working with Mink even easier - MinkExtension.

'MinkExtension' has been just released which has additional services for Behat. This extension has 'Mink' instance for your 'FeatureContext' and 'SubContext'. UI testers would be happy now, as they don't need to create Mink instance every time in order to use Mink API's.

He points you to an example application you can use to follow along. He includes the commands needed to install the dependencies via Composer and get this extension working (note: it requires PHP 5.4 for some of the traits stuff. If you don't want to use that, comment out the "TraitedFeatureContext.php" file). Also included are the commands to execute the tests with a Selenium server and a list of a few handy new things this extension enables.

0 comments voice your opinion now!
minkextension mink behat bdd testing frontend selenium


Script-Tutorials.com:
Form Validation with Javascript and PHP
February 02, 2012 @ 09:07:40

On the Script-Tutorials.com site today there's a new tutorial about form validation using a combination of jQuery on the frontend and PHP on the backend.

In this tutorial, I will show you how to create an attractive, pleasant to look form for your website and then I will explain you how to dynamically validate them using Javascript. We'll also cover server-side validation with PHP to make everything 100% safe. This tutorial will help you to add more functionality to your forms which leads to better user experience and better quality of your website.

His sample form (name, password, email and gender) is made from some pretty simple HTML markup. The real trick comes with the jQuery validation on each field handled in an onKeyUp. Included are both a "password strength" method and an email validation method to check the format of the address. Errored fields have their background color changed to indicate that they've failed and some basic validation (length, password match, etc.) are also included. The PHP does much of the same validation once the form is posted and returns any error messages that might have come up.

You can download the code or try out a live demo to see the scripts together in action.

0 comments voice your opinion now!
form validation jquery javascript frontend backend tutorial


ServerGrove Blog:
Easily manage multilingual sites with the new TranslationEditorBundle for Symfony2
January 11, 2012 @ 12:09:36

On the ServerGrove blog today there's a new post about using their TranslationEditorBundle (Symfony2) to handle multilingual support for your site.

We have been working a lot with Symfony2 translations lately (we translated our website to Spanish and we are in the process of translating our control panel too). Dealing with multiple translation files is not difficult, but it takes time, lots of copy & paste. We have found that is quite easy to make mistakes, create duplicate lines, etc... in short, it's messy. To tame the translation chaos we decided to create a simple web based editor to deal with Symfony2 translations. The result is the TranslationEditorBundle and it's publicly available for anyone to use and contribute to.

The bundle gives you a simple web frontend to the translation process, making it a lot simpler to input the different versions of the text as well as determine where any duplication might be happening. It also gives you things like the total number of entries and the number of them missing their translations.

0 comments voice your opinion now!
translationeditorbundle symfony2 framework translation frontend editor


NetTuts.com:
Creating an API-Centric Web Application
January 03, 2012 @ 13:18:19

On NetTuts.com there's a recent post from Nikko Bautista about creating an API-centric application and how it can help you make a more flexible, accessible application overall. Code is included to make a simple TODO list application based on this idea.

Planning to start working on a new web application? In this tutorial, we'll discuss how to create an API-centric web application, and explain why this is essential in today's multi-platform world. [...] An API-Centric Web Application is a web application that basically executes most, if not, all its functionality through API calls. [...] Another characteristic of an API-Centric Web Application is that the API will always be stateless, meaning it can't recognize API calls by session.

He talks about how doing the work like this, though it might seem like more trouble up front, can lead to an easier time later when you need to add multi-platform support (or even open it to customers directly). In the sample application, he shows the creation of a TODO application that can create, read, update and delete items via an API. Also included is a bit of code to help secure your service with an APP ID and APP SECRET authentication set. Full code for the backend API and the frontend to interface with it can be downloaded here.

0 comments voice your opinion now!
api application tutorial frontend todo



Community Events





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


language install library symfony zendserver laravel podcast framework community series tips introduction opinion deployment interview release package list api update

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