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

save 15%!
save 37%!

Also available on: |
![]() ![]() ![]() ![]() |
- 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
Book Details
Language : EnglishPaperback : 302 pages [ 235mm x 191mm ]
Release Date : August 2012
ISBN : 1849515808
ISBN 13 : 9781849515801
Author(s) : M A Hossain Tonu
Topics and Technologies : All Books, Beginner's Guides, Open Source, PHP
Table of Contents
PrefaceChapter 1: Setting up your Development Environment
Chapter 2: Boosting Your Coding Productivity with the PHP Editor
Chapter 3: Building a Facebook-like Status Poster using NetBeans
Chapter 4: Debugging and Testing using NetBeans
Chapter 5: Using Code Documentation
Chapter 6: Understanding Git, the NetBeans Way
Chapter 7: Building User Registration, Login, and Logout
Appendix A: Introducing Symfony2 Support in NetBeans 7.2
Appendix B: NetBeans Keyboard Shortcuts
Appendix C: Pop Quiz Answers
Index
- Chapter 1: Setting up your Development Environment
- Why NetBeans for PHP application development?
- Recommended system requirements
- 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
- 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
- Summary
- Chapter 3: Building a Facebook-like Status Poster using NetBeans
- Planning the project
- Understanding JSON – JavaScript Object Notation
- Introducing jQuery – the definitive JavaScript library
- Understanding AJAX – asynchronous JavaScript and XML
- Introducing jQuery.ajax()
- Introducing PHP Data Objects (PDO)
- Creating the NetBeans PHP project
- Creating the status stream display list
- Setting up the database server
- Time for action – connecting with MySQL database server
- Creating the database and table
- Time for action – creating MySQL database and table
- Inserting sample rows into the table
- Adding sample user image files
- Creating the StatusPoster PHP class
- Time for action – creating a class, adding a constructor, and creating methods
- Firing the user interface for displaying the status list
- 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
- Adding new status post template to index.php
- Creating the AJAX status poster
- Time for action – creating status poster using JQuery AJAX
- Working with StatusPoster.php again
- Adding AJAX responder code to index.php
- Testing the usability of the status poster
- Summary
- 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
- Enabling XDebug on Ubuntu
- Time for action – installing XDebug on Ubuntu
- Enabling XDebug on Mac OS X
- Debugging the PHP source with NetBeans
- The debugger windows
- Basic debugging workflow
- Time for action – running a debugging session
- Adding Watches
- Time for action – adding the expression to watch
- Testing with PHPUnit
- Configuring PHPUnit
- Time for action – installing PHPUnit via PEAR
- Creating and running PHPUnit tests
- Time for action – testing with PHPUnit
- Dealing with code coverage with PHPUnit
- Time for action – using code coverage
- Testing using the Selenium framework
- Time for action – running tests with Selenium
- Summary
- Chapter 5: Using Code Documentation
- Writing great documentation
- PHPDoc – commenting standard for PHP
- Example of a DocBlock
- Acquainting with PHPDoc tags
- Data type tags
- Legal tags
- Versioning tags
- Other tags
- Documenting the source code
- Documenting the functions and methods
- Time for action – documenting a PHP function or method
- Documenting classes
- Time for action – documenting the PHP class and class variables
- Documenting TODO tasks
- Time for action – using @todo tags
- Documenting the API
- Configuring ApiGen
- Time for action – installing ApiGen and configuring it with NetBeans
- Generating API documentation
- Time for action – generating documentation using ApiGen
- Summary
- Chapter 6: Understanding Git, the NetBeans Way
- Version control system
- Distributed version control
- Git – the fast and distributed version control system
- Understanding Git, the NetBeans way
- Initializing a Git repository
- Time for action – initializing a Git repository
- Cloning 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
- Viewing changes in the source editor
- Git window
- Committing changes to the repository
- Time for action – committing changes to the local repository
- Comparing file revisions
- Time for action – using diff from the IDE
- Reverting the local changes of the repository
- Time for action – reverting changes of the working tree
- Working with remote repositories
- Fetching source code updates
- Time for action – fetching source code updates
- Pulling updates from the remote repository
- Time for action – pulling updates from the remote repository
- Pushing source code changes to a remote repository
- Time for action – pushing source code changes
- Working with branches
- Creating a branch
- Time for action – creating a branch
- Checking out a branch
- Time for action – checking out a branch
- Switching to a branch
- Checking out files
- Merging
- Time for action – merging into current branch
- Deleting a branch
- Good practices and workflow
- Summary
- Chapter 7: Building User Registration, Login, and Logout
- Planning the project
- Understanding the application architecture
- Understanding the DAO pattern
- Reviewing OOP issues
- Namespace
- The API
- Designing the database
- Creating the data access layer
- Creating the BaseDao abstract class
- Time for action – creating the BaseDao class
- Creating the User DAO class
- Time for action – creating the User Dao class
- Creating the Service layer
- Creating the ValidatorService class
- Time for action – creating the ValidatorService class
- Creating the UserService class
- Time for action – creating the UserService class
- Building the application
- Time for action – creating the user application
- Creating the user interface
- Time for action – creating the user interface
- Summary
- Appendix A: Introducing Symfony2 Support in NetBeans 7.2
- Downloading and integrating the latest Symfony Standard Edition
- Time for action – integrating Symfony2 with NetBeans
- Creating a new Symfony2 project
- Time for action – creating a Symfony2 project using NetBeans
- Running Symfony2 console commands inside NetBeans
- Creating a bundle
- Time for action – creating a bundle using the Symfony2 console command
- Appendix B: NetBeans Keyboard Shortcuts
- File menu
- Edit menu
- View menu
- Navigate menu
- Source menu
- Refactor menu
- Run menu
- Debug menu
- Window menu
- Scrolling and selecting
- Modifying text
- Code folding
- Searching for text
- Setting tabs
- Appendix C: Pop Quiz Answers
- Chapter 2, Boosting your Coding Productivity with the PHP Editor
- Chapter 3, Building a Facebook-like Status Poster using NetBeans
- Chapter 4, Debugging and Testing using NetBeans
- Chapter 5, Using Code Documentation
- Chapter 6, Understanding Git, the NetBeans way
M A Hossain Tonu
Code Downloads
Download the code and support files for this book.
Submit Errata
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
Errata
- 1 submitted: last submission 12 Feb 2013Errata type: Code | Page number: 78
In the Inserting sample rows into the table section, the INSERT statement uses an empty string ('') as the value of an auto-incrementing id field. This does not work. It should be null instead.
Sample chapters
You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.
- 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
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.
A Beginner's Guide
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.