PHP Application Development with NetBeans : Beginner's Guide

by
Format: Paperback
Pub. Date: 2012-08-31
Publisher(s): Lightning Source Inc
  • Free Shipping Icon

    Receive Free Shipping To The More Store!*

    *Marketplace items do not qualify for the free shipping promotion.

List Price: $44.99

Buy New

Usually Ships in 2-3 Business Days
$44.95

Rent Textbook

Select for Price
There was a problem. Please try again later.

Used Textbook

We're Sorry
Sold Out

eTextbook

We're Sorry
Not Available

Summary

NetBeans has many features that greatly simplify PHP development, and with its several features and great flexibility. NetBeans abstracts much of the work needed to configure the environment and makes it convenient for PHP developers to start coding straight away. This book provides step-by-step instructions that show you how to take control of the environment and make use of these features to make your PHP application development more efficient and productive then ever before.

Table of Contents

Prefacep. 1
Setting up your Development Environmentp. 7
Why NetBeans for PHP application development?p. 8
Recommended system requirementsp. 9
Downloading the NetBeans IDEp. 10
Time for action - downloading the NetBeans IDEp. 10
Installing NetBeansp. 12
Time for action - installing NetBeans step by stepp. 13
Setting up your development environment in Windowsp. 18
Time for action - installing XAMPP in Windowsp. 18
Setting up your development environment in the Ubuntu desktopp. 21
Time for action - installing LAMP on the Ubuntu desktopp. 21
Setting up your development environment in Mac OS Xp. 25
Time for action - installing MAMP in Mac OS Xp. 26
Creating a NetBeans PHP projectp. 30
Time for action - creating a NetBeans PHP projectp. 31
Summaryp. 36
Boosting Your Coding Productivity with the PHP Editorp. 37
Familiarizing yourself with the base IDE featuresp. 38
Exploring the editor for PHPp. 45
Exploring more with the editorp. 53
Using rename refactoring and instant renamep. 53
Using code completionp. 56
Using the code generatorp. 63
Summaryp. 66
Building a Facebook-like Status Poster using NetBeansp. 67
Planning the projectp. 67
Understanding JSON - JavaScript Object Notationp. 69
Introducing jQuery - the definitive JavaScript libraryp. 70
Understanding AJAX - asynchronous JavaScript and XMLp. 71
Introducing jQuery.ajax()p. 71
Introducing PHP Data Objects (PDO)p. 72
Creating the NetBeans PHP projectp. 72
Creating the status stream display listp. 73
Setting up the database serverp. 73
Time for action - connecting with MySQL database serverp. 73
Creating the database and tablep. 74
Time for action - creating MySQL database and tablep. 75
Inserting sample rows into the tablep. 78
Adding sample user image filesp. 79
Creating the StatusPoster PHP classp. 79
Time for action - creating a class, adding a constructor, and creating methodsp. 80
Firing the user interface for displaying the status listp. 85
Time for action - adding CSS support to the documentp. 85
Time for action - adding jQuery support and custom JS libraryp. 89
Time for action - showing the status listp. 92
Hatching out the status poster using PHP-AJAXp. 96
Time for action-adding the status input box to the interfacep. 97
Adding new status post template to index.phpp. 99
Creating the AJAX status posterp. 99
Time for action - creating status poster using JQuery AJAXp. 100
Working with StatusPoster.php againp. 103
Adding AJAX responder code to index.phpp. 104
Testing the usability of the status posterp. 105
Summaryp. 108
Debugging and Testing using NetBeansp. 109
Debugging - the ancient art of programmingp. 109
Debugging PHP source code with XDebugp. 110
Configuring XDebugp. 110
Time for action - installing XDebug on Windowsp. 111
Enabling XDebug on Ubuntup. 113
Time for action - installing XDebug on Ubuntup. 113
Enabling XDebug on Mac OS Xp. 114
Debugging the PHP source with NetBeansp. 115
The debugger windowsp. 116
Basic debugging workflowp. 117
Time for action - running a debugging sessionp. 117
Adding Watchesp. 122
Time for action - adding the expression to watchp. 122
Testing with PHPU nitp. 125
Configuring PHPUnitp. 125
Time for action - installing PHPUnit via PEARp. 125
Creating and running PHPUnit testsp. 129
Time for action - testing with PHPUnitp. 129
Dealing with code coverage with PHPUnitp. 132
Time for action - using code coveragep. 132
Testing using the Selenium frameworkp. 135
Time for action - running tests with Seleniump. 136
Summaryp. 139
Using Code Documentationp. 141
Writing great documentationp. 141
PHPDoc - commenting standard for PHPp. 142
Example of a DocBlockp. 142
Acquainting with PHPDoc tagsp. 143
Data type tagsp. 144
Legal tagsp. 144
Versioning tagsp. 144
Other tagsp. 145
Documenting the source codep. 145
Documenting the functions and methodsp. 145
Time for action-documenting a PHP function or methodp. 146
Documenting classesp. 149
Time for action - documenting the PHP class and class variablesp. 149
Documenting TODO tasksp. 153
Time for action - using $todo tagsp. 153
Documenting the APIp. 155
Configuring ApiGenp. 155
Time for action - installing ApiGen and configuring it with NetBeansp. 156
Generating API documentationp. 157
Time for action - generating documentation using ApiGenp. 158
Summaryp. 163
Understanding Git, the NetBeans Wayp. 165
Version control systemp. 166
Distributed version controlp. 168
Git - the fast and distributed version control systemp. 169
Understanding Git, the NetBeans wayp. 170
Initializing a Git repositoryp. 170
Time for action - initializing a Git repositoryp. 170
Cloning a Git repositoryp. 172
Time for action - cloning a Git repository from GitHub via the SSH protocolp. 173
Staging files to a Git repositoryp. 177
Time for action - staging files to a Git repositoryp. 177
Viewing changes in the source editorp. 180
Git windowp. 180
Committing changes to the repositoryp. 181
Time for action - committing changes to the local repositoryp. 181
Comparing file revisionsp. 182
Time for action - using diff from the IDEp. 182
Reverting the local changes of the repositoryp. 183
Time for action - reverting changes of the working treep. 184
Working with remote repositoriesp. 186
Fetching source code updatesp. 186
Time for action - fetching source code updatesp. 186
Pulling updates from the remote repositoryp. 187
Time for action - pulling updates from the remote repositoryp. 187
Pushing source code changes to a remote repositoryp. 188
Time for action - pushing source code changesp. 189
Working with branchesp. 190
Creating a branchp. 191
Time for action - creating a branchp. 191
Checking out a branchp. 192
Time for action - checking out a branchp. 192
Switching to a branchp. 194
Checking out filesp. 195
Mergingp. 195
Time for action - merging into current branchp. 196
Deleting a branchp. 197
Good practices and workflowp. 198
Summaryp. 199
Building User Registration. Login, and Logoutp. 201
Planning the projectp. 202
Understanding the application architecturep. 202
Understanding the DAO patternp. 205
Reviewing OOP issuesp. 205
Namespacep. 206
The APIp. 207
Designing the databasep. 207
Creating the data access layerp. 208
Creating the BaseDao abstract classp. 208
Time for action - creating the BaseDao classp. 208
Creating the User DAO classp. 210
Time for action - creating the User Dao classp. 211
Creating the Service layerp. 216
Creating the ValidatorService classp. 216
Time for action - creating the ValidatorService classp. 216
Creating the UserService classp. 223
Time for action - creating the UserService classp. 224
Building the applicationp. 233
Time for action - creating the user applicationp. 233
Creating the user interfacep. 237
Time for action - creating the user interfacep. 237
Summaryp. 247
Introducing Symfony2 Support in NetBeans 7.2p. 249
Downloading and integrating the latest Symfony Standard Editionp. 249
Time for action - integrating Symfony2 with NetBeansp. 249
Creating a new Symfony2 projectp. 250
Time for action - creating a Symfony2 project using NetBeansp. 250
Running Symfony2 console commands inside NetBeansp. 254
Creating a bundlep. 254
Time for action - creating a bundle using the Symfony2 console commandp. 255
NetBeans Keyboard Shortcutsp. 259
File menup. 259
Edit menup. 259
View menup. 260
Navigate menup. 261
Source menup. 262
Refactor menup. 263
Run menup. 263
Debug menup. 263
Window menup. 264
Scrolling and selectingp. 266
Modifying textp. 266
Code foldingp. 266
Searching for textp. 267
Setting tabsp. 267
Pop Quiz Answersp. 269
Boosting your Coding Productivity with the PHP Editorp. 269
Building a Facebook-like Status Poster using NetBeansp. 270
Debugging and Testing using NetBeansp. 271
Using Code Documentationp. 272
Understanding Git, the NetBeans wayp. 272
Indexp. 275
Table of Contents provided by Ingram. All Rights Reserved.

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.