Book Image

PHP Application Development with NetBeans: Beginner's Guide

By : M A Hossain Tonu
Book Image

PHP Application Development with NetBeans: Beginner's Guide

By: M A Hossain Tonu

Overview of this book

<p>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.<br /><br />"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.<br /><br />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.<br /><br />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 &amp; Logout application. Also the book will introduce you with some must know development tools such as debugging &amp; testing tools, source documenter tools, and versioning tools.<br /><br />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.</p>
Table of Contents (16 chapters)
PHP Application Development with NetBeans Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Why NetBeans for PHP application development?


NetBeans IDE facilitates our daily PHP application development activities with the following:

  • Creating and managing projects: The IDE for PHP enables us to create PHP projects, and helps to grow the project. It can perform project-related settings and operations; that is, creating documentation for the project, testing the project, and so on.

  • Editing features for the source code: The code editor comes with an exciting collection of source-editing capabilities within the PHP project scope. It empowers faster code writing with the following features:

    • Syntax highlighting enables highlighting PHP syntax in project files.

    • Code folding enables the folding and unfolding of selected classes and method codes within the current file.

    • Navigation helps to explore classes and methods in the current PHP file.

    • Code templates help in using predefined code snippets.

    • Code completion shows the code's auto completion list.

    • Parameter hints give information about the formal parameters of a method where the method is called.

    • Smart indent provides auto formatting while code pressing.

    • Formatting provides auto code formatting in the current file.

    • Bracket completion adds/removes paired quotes, parentheses, and braces during code writing.

    • Mark occurrences marks all the occurrences of a code string within the opened project files.

    • Error detection shows the PHP parsing error immediately after typing is finished.

    • Pair matching highlights matched pair of quotes, braces, parentheses, and so on.

    • Semantic highlighting identifies the keywords, method names, call, unused variables, and so on.

    • Go to declaration sends the cursor to where the chosen type is declared.

    • Instant rename renames all occurrences of a variable within its scope.

    • Spell checker shows spelling mistakes and corrections.

    • Code documentation helps with an automatic documentation structure.

  • Deploying the project: Provides synchronization within the PHP project content, with remote server content.

  • Database and services: Provides support for database management and web services.

  • SCM tools: Provides source code management tools, such as Git, Subversion, CVS, and Mercurial, built-in for source code versioning, tracking changes, and so on.

  • Running PHP scripts: Enables the parsing of PHP scripts, and yields output within the IDE without going to the browser.

  • Debugging the source code: You can inspect local variables, set watches, set breakpoints, and evaluate the code, live. You can also perform command-line debugging, and check the PHP output in the IDE without going to the browser, which provides competence for remote debugging.

  • Supporting PHP frameworks: It also offers the support for popular PHP frameworks, such as the Zend Framework and Symfony.

    Note

    Comparison of integrated development environments for PHP can be found at http://en.wikipedia.org/wiki/Comparison_of_integrated_development_environments#PHP.

Recommended system requirements

Before we proceed with downloading the latest version, let's have a look into the recommended system requirements of various platforms for installing and running the NetBeans IDE:

  • Microsoft Windows XP Professional SP3/Vista SP1/Windows 7 Professional:

    • Processor: 2.6 GHz Intel Pentium IV or equivalent

    • Memory: 2 GB

    • Disk space: 1 GB of free disk space

  • Ubuntu 12.04:

    • Processor: 2.6 GHz Intel Pentium IV or equivalent

    • Memory: 2 GB

    • Disk space: 850 MB of free disk space

  • Macintosh OS X 10.7 Intel:

    • Processor: Dual-Core Intel (32 or 64-bit)

    • Memory: 2 GB

    • Disk space: 850 MB of free disk space