Free Sample
+ Collection

PHP Application Development with NetBeans: Beginner's Guide

Beginner's Guide
M A Hossain Tonu

Boost your PHP development skills with this step-by-step practical guide with this book and ebook.
RRP $26.99
RRP $44.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849515801
Paperback302 pages

About This Book

  • Clear step-by-step instructions with lots of practical examples
  • Develop cutting-edge PHP applications like never before with the help of this popular IDE, through quick and simple techniques
  • Experience exciting features of PHP application development with real-life PHP projects

Who This Book Is For

The book is aimed at PHP developers who wish to develop PHP applications while taking advantage of NetBeans functionality to ease their software development efforts and utilize the powerful features of the IDE. Familiarity with NetBeans is not assumed. However, a little familiarity with PHP development is expected.

Table of Contents

Chapter 1: 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
Chapter 2: 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
Chapter 3: 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
Chapter 4: 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
Chapter 5: 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
Chapter 6: 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
Chapter 7: 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

What You Will Learn

  • Develop PHP applications by leveraging NetBeans functionality
  • Set up your PHP development environment on various platforms, keeping intact the best features of the IDE
  • Learn PHP development in a fun and easy way with impressive real life PHP applications
  • Develop your applications faster through smart planning
  • Debug and test your PHP projects with clear instructions and easy tips
  • Document your source codes with zero effort using NetBeans
  • Enhance the power of PHP development with version controlling tool, Git
  • Acquire sharp usage of NetBeans and apply in fast paced development environments through mission-critical chapters

In Detail

NetBeans has many features that greatly simplify PHP development, and with its several features and great flexibility, PHP developers can become overwhelmed by the IDE's options. 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 than ever before.

"PHP Application Development with NetBeans: Beginner's Guide" leads you through the crucial parts of PHP programming and shows you how to use the features of NetBeans that will improve your PHP development experience, through clear and easy instructions.

The book gets you started with the development environment and tools, and takes you through working on practical projects with a clear focus. With each chapter being mission-critical, the book is a perfect companion to boost your PHP coding productivity and gain experience with even complex projects.

The book starts with setting up the PHP development environment and introduces exciting and useful IDE features. You'll learn how to build real life PHP projects such as Facebook like Status Updater and even User Registration, Login & Logout application. Also the book will introduce you with some must know development tools such as debugging & testing tools, source documenter tools, and versioning tools.

Working with the NetBeans IDE for PHP development has its own advantages, and this book reassures the purpose. This book is full of illustrations, screenshots, and clear instructions to take your PHP development to a new level and even shows you time-saving tricks and other productivity enhancements.


Read More