PacktLib: PHP Application Development with NetBeans: Beginner's Guide

PHP Application Development with NetBeans Beginner's Guide

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Setting up your Development Environment

Why NetBeans for PHP application development?

Downloading the NetBeans IDE

Time for action — downloading the NetBeans IDE

Installing NetBeans

Time for action — installing NetBeans step by step

Setting up your development environment in Windows

Time for action — installing XAMPP in Windows

Setting up your development environment in the Ubuntu desktop

Time for action — installing LAMP on the Ubuntu desktop

Setting up your development environment in Mac OS X

Time for action — installing MAMP in Mac OS X

Creating a NetBeans PHP project

Time for action — creating a NetBeans PHP project

Summary

Boosting Your Coding Productivity with the PHP Editor

Familiarizing yourself with the base IDE features

Exploring the editor for PHP

Exploring more with the editor

Using rename refactoring and instant rename

Using code completion

Using the code generator

Summary

Building a Facebook-like Status Poster using NetBeans

Planning the project

Creating the status stream display list

Time for action — connecting with MySQL database server

Time for action — creating MySQL database and table

Time for action — creating a class, adding a constructor, and creating methods

Time for action — adding CSS support to the document

Time for action — adding jQuery support and custom JS library

Time for action — showing the status list

Hatching out the status poster using PHP-AJAX

Time for action — adding the status input box to the interface

Time for action — creating status poster using JQuery AJAX

Summary

Debugging and Testing using NetBeans

Debugging the ancient art of programming

Debugging PHP source code with XDebug

Configuring XDebug

Time for action — installing XDebug on Windows

Time for action — installing XDebug on Ubuntu

Debugging the PHP source with NetBeans

Time for action — running a debugging session

Time for action — adding the expression to watch

Testing with PHPUnit

Time for action — installing PHPUnit via PEAR

Time for action — testing with PHPUnit

Time for action — using code coverage

Testing using the Selenium framework

Time for action — running tests with Selenium

Summary

Using Code Documentation

Writing great documentation

PHPDoc—commenting standard for PHP

Documenting the source code

Time for action — documenting a PHP function or method

Time for action — documenting the PHP class and class variables

Time for action — using @todo tags

Documenting the API

Time for action — installing ApiGen and configuring it with NetBeans

Time for action — generating documentation using ApiGen

Summary

Understanding Git, the NetBeans Way

Version control system

Git the fast and distributed version control system

Understanding Git, the NetBeans way

Time for action — initializing a Git repository

Time for action — cloning a Git repository from GitHub via the SSH protocol

Staging files to a Git repository

Time for action — staging files to a Git repository

Committing changes to the repository

Time for action — committing changes to the local repository

Time for action — using diff from the IDE

Time for action — reverting changes of the working tree

Working with remote repositories

Time for action — fetching source code updates

Time for action — pulling updates from the remote repository

Time for action — pushing source code changes

Working with branches

Time for action — creating a branch

Time for action — checking out a branch

Time for action — merging into current branch

Good practices and workflow

Summary

Building User Registration, Login, and Logout

Planning the project

Understanding the application architecture

Designing the database

Creating the data access layer

Time for action — creating the BaseDao class

Time for action — creating the User Dao class

Creating the Service layer

Time for action — creating the ValidatorService class

Time for action — creating the UserService class

Building the application

Time for action — creating the user application

Time for action — creating the user interface

Summary

Introducing Symfony2 Support in NetBeans 7.2

Introducing Symfony2 Support in NetBeans 7.2

Introducing Symfony2 Support in NetBeans 7.2

Introducing Symfony2 Support in NetBeans 7.2

Introducing Symfony2 Support in NetBeans 7.2

Introducing Symfony2 Support in NetBeans 7.2

Introducing Symfony2 Support in NetBeans 7.2

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

NetBeans Keyboard Shortcuts

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers