|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2000
Location: Switzerland
Posts: 2,906
|
Advanced PHP Resources
Advanced PHP Resources
Version 2.0.1 alpha (work in progress - HF - 11 Mar 2004) The following list of resources and pointers is intended to help PHP developers improve development technique. The focus is on more "theoretical" aspects of PHP rather than "Here's how to do X" examples. Contents - Selected Sitepoint Discussions - Object Oriented Programming and PHP - PHP Development Tools - PHP Class Libraries, Repositories and Extensions - PHP Frameworks - Recommended Reading - Development Methodologies - Selected PHP HOWTOs - PHP5 - Communities and Blogs Last edited by HarryF; Mar 14, 2004 at 11:47. |
|
|
|
|
#2 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2000
Location: Switzerland
Posts: 2,906
|
Selected Sitepoint Discussions
Selected Sitepoint Discussions
Sitepoint's Advanced PHP Forums provide a platform for discussing more advanced aspects of development with PHP as well exploring more theorectical aspects of software design. The purpose is to explore ways to make development with PHP, faster, more effecient, more reliable etc. - Response to "What's so good about OOP?" No further discussion required after voostind's excellent response. - What do you think about design patterns? Some pattern discussion leading to how to create Singletons in PHP4 - Event Handling Classes in PHP (aka Hijacking PHP's error handler In reality, this is not the way to do things - error handling mechanisms tend to be slower that the "normal channels" in most programming languages plus, as you'll see, things end up a mess. But fun anyway... And serializing objects to pass the the error handler is a useful hack for real error handling in PHP4. - Database Abstraction Pointless? The pros and cons of database abstraction layers - PEAR QuickForm leading into discussion of Iterators Beginning with thoughts for and against PEAR::HTML_Quickform then changing to a fascinating discussion of Iterators in PHP, which points to the root of what PHP is as a technology - Forms, fields, filters Different approaches to using OOP when dealing with forms, a critical chunk of any web application - Separate Logic / Presentation without Templates On the seperation that gets PHP programmers arguing as well as discussion of implementing MVC in "raw PHP" (i.e. without a framework providing the structure for you) - Java API as base for PHP library? Discussion of where to go with OOP in PHP. Some fascinating insight from many directions (plus WACT rears it head for the first time) - How to make OO code not bloated in PHP? Practical tips before going OOP-wild in PHP - Best Practices? Development strategies / methodologies used by SPF members for developing PHP applications - Front Controllers, Page Controllers, Intercepting Filters Experiments and thoughts on how to fit these patterns together in PHP. Even Google thinks it's worth a read: Intercepting filters - MVCP - MVC missing a layer? Thoughts, doubts, concerns and advice on MVC in PHP spanning no less than five pages. Some deep insight to what MVC is (or isn't). Last edited by HarryF; Mar 15, 2004 at 15:13. |
|
|
|
|
#3 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2000
Location: Switzerland
Posts: 2,906
|
Object Oriented Programming and PHP
Object Oriented Programming and PHP
PHP has evolved from a pure procedural language to one where the Object Oriented and Procedural paradigms co-exist happily. Many PHP developers learn a procedural style first and historically the majority of online material relating to PHP takes this focus. This a selection of PHP specific aimed at a PHP developer wishing to explore OOP. Selected Reading on OOP in PHP - Object Oriented PHP: Paging Result Sets Kevin Yank provides a practical (and PHP-relevant) intro to Object Orientated in PHP. Great starting point for those that prefer learning by doing. - Object Oriented PHP A straightforward discussion of PHP 4's object model in context with general OOP theory, emphasizing all the key points and using examples PHP developers should relate to. - Introduction to PHP Objects Part 1 and Part 2 John Coggeshall provides a rigorous overview of PHP's OOP in PHP. - Object Oriented Programming in PHP: The way to large PHP projects Luis Argerich with an overview of OO in PHP which will suit developers already used to OOP with other languages. One of the first (if not the first) articles on OOP in PHP. - Using Objects to Create an Application Part 1 and Part 2 Introduction to OOP in PHP by putting together a simple applications. Learning by doing. - PHP(4) References explained - PHP4: Reference Counting and Aliasing - PHP(4) and Variable References Articles explaining how references work in PHP4 (no longer applies to PHP5, more or less) - PHP (4) Static Class Variables How to simulate static class variables in PHP (more to come) Design Patterns About design patterns Pattern Repositories - phpPatterns - Sun Java Center - J2EE Patterns - .NET Architecture Center - Patterns Central - PHP Design Pattern Examples Patterns in PHP (selected online articles) Core Patterns From the original GOF collection The Singleton The Strategy Pattern Adapter and Proxy Patterns The Observer Pattern The Factory Method The Iterator Pattern The Decorator Pattern The Command Pattern This article could do better The Template Method (in PHP5) Enterprise Patterns Patterns with direct relevance to web applications - Industrial Strength MVC MVC in action with PHP and Phrame - MVC Example implementation - Simple MVC Examples Pages 9 - 11 - probably the simplest MVC example possible in PHP. - Model View Controller Short discussion - Front Controller General discussion and PHP issues - The Front Controller and PHP Problems with implementing front controllers in PHP - Front Controller / Command Discussion and PHP implemtentation - The Registry How to avoid global variables - The DAO Pattern Data Access Objects - Incepting Filter General discussion and PHP issues - Intercepting Filters More discussion and example implementation - Template View Study of the template view (i.e. templates) looking at differing approaches used in PHP and other languages - Page Controller Short discussion Last edited by seanf; Jan 26, 2006 at 13:47. |
|
|
|
|
#4 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2000
Location: Switzerland
Posts: 2,906
|
PHP Development Tools
PHP Development Tools
Open Source / freeware tools to help with PHP development. Debuggers and Profilers - XDebug (recommended) Excellent debugger and profiler extension. - Advanced PHP Debugger George Schlossnagle's debugger - does some nice stuff like this - PEAR::Benchmark Benchmarking and profiling tool written in PHP. - DBG PHP Debugger Unit Test Frameworks - Simple Test (recommended) Excellent documentation, support for mock objects - PEAR::PHPUnit Documentation Generation Tools - phpDocumentor (recommended) Generates API documentation from inline source code comments (like Javadoc). Output can be "templated" and, in additional to generating HTML, PDF and CHM is also supported. Written in PHP - PHPXref (recommended) Builds "cross reference" documentation of source code allowing you to view all the files where a variable / method / function is declared as well as the locations where they are referenced. Written in Perl. Build / Deployment Tools - PEAR Package Manager (recommended) Allows you to install PEAR packages (over the network) plus bundle your code for installation. Execute http://pear.php.net/go-pear with the PHP command line executable to get started. Written in PHP. - PEAR::PackageFileManager Automates generation of package.xml files used by the Package Manager. Written in PHP. - Phing PHP build tool equivalent to Apache ANT. Worth investigating for large projects. Written in PHP. - ZZ/OSS Installer PHP-based installation wizard for professional release management of modular PHP applications. UML and Design Tools - Argo UML UML diagram drawing tool with support for PHP stub generation (commercial spin off is Posideon) - written in Java - Umbrello UML UML diagram drawing tool with support for PHP stub generation. Requires Unix / KDE - Dia Diagram tool with UML support - generate PHP using AutoDia - XMI 2 PHP Generate PHP code from XMI documents, an XML format for describing UML Accelerators - Turck MMCache (highly recommended) OPCODE Cache, script encoder, profiler and dynamic content cache (read persistance) all in one. Provides Windows binaries as well. - PHP Accelerator (recommended) OPCODE Cache (more to come) Recommended IDEs / Editors (a select few!) - PHP Eclipse Plugins for the Eclipse IDE - PHP Edit Perhaps the best free PHP IDE for Windows - JEdit IDE with PHP support (plus loads more). Written in Java so platform independent - Jext The siamese twin of JEdit - JEdit IDE with PHP support (plus loads more). Written in Java so platform independent - gPHPEdit Best(?) PHP editor for Gnome / Linux - SciTE Straightforward cross platform editor for pretty much anything. - PHP Mode for Emacs PHP support for the Unix EMACS IDE - Sitepoint Discussions on IDEs (there's many more - hit search) Best open source/ inexpensive PHP IDE?, Favorite PHP IDE?, good text editor?! - for Windows, Good PHP Text Editors and many more... Last edited by HarryF; Mar 22, 2004 at 14:46. |
|
|
|
|
#5 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2000
Location: Switzerland
Posts: 2,906
|
PHP Class Libraries, Repositories and Extensions
PHP Class Libraries, Repositories and Extensions
Where to find them PHP Class Repositories - PEAR The PHP Extension and Application Repository. PHP's equivalent to Perl's CPAN - PHP Classes Large (the largest?) repository of classes and PHP web application components. PHP Extensions - PECL The PHP Extension Community Library - eventually all extensions not part of the standard distribution will end up here I believe - PHP Extensions for Windows Large collection of PHP extensions compiled for Windows - SWIG Generate PHP extensions from existing libraries - SAPRFC PHP Client for SAP - Universe PHP / Corba - PHP Tuxedo PHP client for BEA Tuxedo - PHP + Namazu PHP extension for the Namazu full text search engine - Mapserver (has PHP extension) Generate maps for your site - pRuby (Experimental) - Python in PHP Embed Python into PHP scripts - Perl in PHP (Experimental) - myphp Embed PHP into MySQL queries (Experimental) - php-java-rmi (ZIP) Add on to Java extension - short details here (Experimental) Selected Classes / Components List of classes scattered around the net. You may find classes offering similar functionality at PEAR / phpclasses - Php.XPath XPath implementation in PHP, using the built in SAX functions - PHPMailer Class for sending emails, handling everything you need - attachements, HTML email etc. etc. - PHPSniff Browser detection - RDF API for PHP For parsing, manipulating, serializing, storing and querying RDF models. - Magpie RSS Parser For parsing RSS 0.9x to 1.0 (i.e. most feeds) - phpOpenTracker (recommended) For storing and analysing visitor stats. - The PHP Math Library Project (recommended) Focal point for building some serious math libraries for PHP. - FPDF PDF generator written in PHP - R&OS PDF PDF generator written in PHP - HAWHAW For building WML pages - Class.Jabber.PHP Jabber client - HTTP Digest Implements HTTP Digest authentication in PHP (Apache only) - NuSOAP SOAP client / server with WSDL support - Incution XML-RPC XML-RPC client / server - PHP HTMLLib Library for building HTML (plus XML, WML and SVG) pages. - Tika:TK PHP + JavaScript for building web "GUIs" - ADOdb Probably PHP's most robust DB abstraction layer. There's some leakiness around the API but if you want it to "just work and work fast", this in the one. - Creole and Propel DB abstraction layer and ORM tool for PHP5. Blogged here. - Flat File DataBase for PHP - PHP DocWriter Library for generating OpenOffice documents (more to come) Last edited by HarryF; Apr 3, 2004 at 14:30. |
|
|
|
|
#6 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2000
Location: Switzerland
Posts: 2,906
|
PHP Frameworks
PHP Frameworks
In the most general sense, a framework is an environment for executing your code. You might say the PHP engine + web server itself is a framework. For web applications, providing a higher level framework, written in PHP, can prove beneficial in terms of making the code you write for that framework more structured, easier to maintain, faster to develop and so on. - MVC Frameworks Written In PHP Most (if not all) MVC style frameworks, written in PHP, are listed here. MVC (model view controller) is design pattern frequently applied to web based applications. It's not the only way to go though. (more to come) |
|
|
|
|
#7 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2000
Location: Switzerland
Posts: 2,906
|
Recommended Reading
Recommended Reading
Books, magazines and online resources. Note: individual online articles are not referenced here, just sites with repositories of relevant info. Books Bruce Eckel: Thinking in Java Has a very solid lead-in to OOP which, although written for Java, can be mostly applied to PHP as well, making decent in depth discussion for beginners. Also nice is it's free to read online or you can pick it up from Amazon here Bruce Eckel: Thinking in Patterns (be warned it's ZIP!) Unfinished book on design patterns. Originally planned to use Java but most examples work with Python, bringing a dynamic aspect to it that's relevant to PHP GOF: Design Patterns A must read. Has become a modern-day classic on software development - the missing link on OOP. Provides the core design patterns which can be applied in most any programming language. Martin Fowler: Patterns of Enterprise Application Architecture One of the "new wave" books on patterns, addressing issues directly relevant to web applications. Another must read Martin Fowler: Refactoring: Improving the Design of Existing Code A book that will improve a developer's code quality faster than any other. Everything from how large methods should be to how to safely put right a completely mis-designed application. BlueJ Editor and Objects First Java: learning by doing - principles can be applied to any language with an object model. Guide to PHP Design Patterns Provides a discussion of sixteen design patterns which are relevant to web application development, while threading refactoring and unit testing into the narrative. Uses both PHP4 and PHP5 as reference examples. A more in detailed review. Head First Design Patterns A different way of learning patterns, using a visually-rich formatted book. The book uses Java examples. Magazines - php|architect Excellent US-based PHP magazine bridging the gap between books and typical online articles - much depth while to the point. Distributed in electronic and print formats. - International PHP Magazine Run out of Germany, this gets input from many of PHP's core developers so has an inside track there but is still working to establish itself. Same company also produces the for-print German PHP Magazine (which has completely different content) - PHP Solutions Magazine [small]Seen this in German on the local newsstands. Seems to be addressing the PHP hacker-ethic (and uses very bright colors on the cover). Online Resources - The C2 Wiki Excellent starting point for investigating any software development "buzz". This is also the "mother wiki" (where wikis began), developed by Ward Cunningham. - Martin Fowler's Bliki Martin Fowler's (source of many a book on patterns and software design) Blog / wiki - Manageability Lots of interesting snippets and insight scattered around here. And 101 Reasons Why Java is Better than .NET is entertaining backlash. - Dictionary of Algorithms and Data Structures Last edited by Helge; Nov 27, 2006 at 00:24. |
|
|
|
|
#8 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2000
Location: Switzerland
Posts: 2,906
|
Development Methodologies
Development Methodologies
Approaches to software development and software project management (more to come) |
|
|
|
|
#9 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2000
Location: Switzerland
Posts: 2,906
|
Selected PHP HOWTOs
Selected PHP HOWTOs
Collection of online articles / examples for how to solve particular problems. Focus is on subjects which are either harder to grasp (e.g. XML related), required knowledge (e.g. Security) or PHP application design related. (more to come) |
|
|
|
|
#10 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2000
Location: Switzerland
Posts: 2,906
|
Php5
PHP5
PHP5 represents a shift in paradigm for PHP, bringing it closer to Java in terms of it's object model (at least from the point of view of a PHP developer). This is a collection of articles / resources discussing PHP5's new features. New Syntax and Core Features - Changes in PHP 5/Zend Engine 2.0 The official summary of all major features with short examples - Migrating from PHP 4 to PHP 5 The official migration guide - PHP Introduction Håvard Eide provides a blow by blow breakdown of new features, with plenty of examples[/url] - Introduction to PHP5 Luis Argerich on PHP5. - PHP5: Coming Soon to a Webserver Near You My take on PHP5 Beta 1 - Presentation: Introducing PHP5 Shane Caraveo's presentation to OSCON 2003 and (later) LinuxTag. New Extensions and Functionality - XML in PHP5: An in-depth look into advanced XML features Christian Stocker's presentation to the PHP-Conference 2003 in Frankfurt. - XML in PHP 5 - What's New? Chistian Stocker describes the major overhaul that's happened to PHP's XML support. - PHP SOAP Extension Dmitry Stogov explains the new SOAP extension (which looks like its going to be default functionality for PHP5). Accessing web services doesn't get much easier - SQLite Introuction Ilia Alshanetsky describes PHP5's built in database engine - Tidying up your HTML with PHP 5 John Coggeshall introuces his extension for "cleaning up" HTML. - COM/DOTNET Wez Furlong explains how he's overhauled PHP's ability to interop with Windows - Using ext/mysqli: Part I - Overview and Prepared Statements Zak Greant and Georg Richter looking at functionality offered PHP5's second MySQL extension. Installation / Setup - Installation/PHP5 Roundup of links to further information on PHP5 setup / installation - Running PHP4 and PHP5 in parallel Links to further links on running them together Last edited by HarryF; Mar 24, 2004 at 03:07. |
|
|
|
|
#11 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2000
Location: Switzerland
Posts: 2,906
|
Communities and Blogs
Communities and Blogs
Blogs related to PHP and software development. Kept seperate from Recommended Reading as it may turn into a long list and, with blogs, signal to noise tends to be low. A leaky abstraction? PS - don't think it's really necessary to list Sitepoint here - hopefully you know where you are... PHP Community PHP News - PHP Planet Aggegates various PHP blogs as well as general commentary of things going down in PHP - PHP Developer Picks up pretty much everything significant happening in PHP with useful summary php | arch and php mag also keep their fingers on the pulse. Online PHP Article and Tutorial Libraries - Zends Developer Zone - PHP Builder The first (?) major resource for PHP programmers outside the official locations. Things have slid a little since then (change of ownership) but still tons of good stuff - O'Reilly Network: PHP DevCenter Large collection from beginner to pro. Usual high quality you'd expect from O'Reilly - Devshed: PHP Large collection of PHP related content. - IBM: Web Architecuture PHP gets a look in from time to time - WeberDev Massive collection of code snippets etc. Articles, forums, you name it. - Codewalkers Tutorials, code snippets, coding contests and loads more - ZEZ From the makers of eZ publish. Some interesting pieces on the less charted areas of PHP. Sadly no longer being updated.. PHP Discussion - The PHP Mailing Lists Web interface for browsing them. Signup here. PHP Blogs In no particular order PHP Kitchen, PHP Everywhere, Sterling Hughes, Bitflux / Christian Stocker, Håvard Eide aka NucleuZ, Pat Blog (as in patuser etc.), John Coggeshall, circle.ch, Tobias Schlitt, hgblog (The Boss of PHPUG:CH), Alan Knowles, George Schlossnagle, Sebastian Bergmann, Home is where the heart is. Apparently., Ferengi's thoughts ..., Joshua Eichorn, Derick Rethans, 'zlog (Wez Furlong), Thies C. Arntzen, Colin Viebrock (more to come) General Blogs Lambda the Ultimate, Dan Kalowsky (more to come) Last edited by HarryF; Apr 3, 2004 at 14:32. |
|
|
|
|
#12 |
|
simple tester
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Sep 2003
Location: Glasgow
Posts: 1,680
|
A ton of sample chapters on this site including this meaty morsel: http://www.informit.com/articles/article.asp?p=30661.
|
|
|
|
|
#13 |
|
SitePoint Member
Join Date: Feb 2005
Posts: 2
|
UML Took
Thanks for this excellent list!!
One additional UML tool to add would be Enterprise Architect ( http://www.sparxsystems.com.au ) Very good tool. Has round-trip code engineering for PHP, plug-ins for eclipse, and tons more for only $225! Steve Truesdale |
|
|
|
|
#14 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2001
Posts: 2,716
|
I have closed this thread so it doesn't get flooded with messages that doesn't really add anything valuable, and only makes It harder to find information. It has happend to similar threads before.
If you know of a resource that will be valuable to other members we will be more than happy if you want to tell us. Send a PM to one of the Programming Team Advisors (seanf, redemption, Helge or r937), and they will add it for you. If you would like to thank HarryF for his initiative, send him a PM. ![]() |
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 15:19.








Linear Mode
