JpGraph - Most powerful PHP-driven charts 10 tools for Modern PHP Development | DaveDevelopment Featured Posts Coding DCI in PHP I recently taken a closer look at DCI, this post describes my investigation as to how viable implementing DCI in PHP might be php dci bdd behat featured oop Silex Controllers as Services Using a custom controller resolver, we can create controllers as services much like how it's done with the full stack Symfony framework php featured silex dependency injection How I'm doing TDD with PHP I've been watching the Destroy All Software back catalog over the last couple of months and it's really inspired me to up my TDD game. php tdd bdd rambling behat phpunit featured Handling Symfony2 Events Asynchronously How many of your event listeners need to act synchronously? php symfony2 event driven architecture featured open source message queues silex Phpmig - Simple migrations for php Phpmig is a simple migrations system that was written to be easily adopted regardless of the framework or libraries you are using. php migrations pear featured open source Browse more blog posts
7 Secure, Lightweight, and Easy to Use PHP Frameworks Choosing a good PHP frameworks can help you develop complex Rich Internet Applications quickly, with a best practices oriented approach, and saving a lot of time reusing code snippets that are already available. There are a lot of interesting PHP frameworks you can choose for your next web project. Which framework you choose is really a personal decision. Today we will focus on 7 secure, lightweight and easy to use PHP Frameworks. Why Use a PHP Framework? There are plenty of reasons to use a PHP Framework to build your websites. 1. Below we’ve covered some of the best frameworks available today. 1. CodeIgniter is a powerful, high-performance, open-source PHP framework that helps you author PHP applications rapidly. CodeIgniter has an exciting online manual, a couple of helpful video tutorials and an active user forum. Useful Resources for getting started with CodeIgniter 2. Kohana is a PHP 5 framework that uses the Model View Controller architectural pattern. 3. 4. 5. 6. 7.
10 Advanced PHP Tips Revisited - Smashing Magazine Advertisement Here, on the Smashing Editorial team, we always try to meet the expectations of our readers. We do our best to avoid misunderstandings, and we try to spread knowedge and present only the best design practices and development techniques. In November 2008 we published the article 10 Advanced PHP Tips To Improve Your Programming21. 10 Useful PHP Tips Revisited by Chris Shiflett and Sean Coates This article is a rebuttal to 10 Advanced PHP Tips To Improve Your Programming21 — henceforth referred to as the previous article — published last November here on Smashing Magazine. Listed below are 10 excellent techniques that PHP developers should learn and use every time they program. Unfortunately, the intrigue devolves into disappointment. 1. This particular tip is just a link to a useful resource with no discussion on how to use it. We can provide some much-needed context, but because we don’t want to focus too much on one attack, we’ll first take a step back. <? 2. 3. 4. 5. 6. <? 7.
Top 20+ MySQL Best Practices Database operations often tend to be the main bottleneck for most web applications today. It's not only the DBA's (database administrators) that have to worry about these performance issues. We as programmers need to do our part by structuring tables properly, writing optimized queries and better code. In this article, I'll list some MySQL optimization techniques for programmers. Before we start, be aware that you can find a ton of useful MySQL scripts and utilities on Envato Market. Most MySQL servers have query caching enabled. The main problem is, it is so easy and hidden from the programmer, most of us tend to ignore it. The reason query cache does not work in the first line is the usage of the CURDATE() function. Using the EXPLAIN keyword can give you insight on what MySQL is doing to execute your query. The results of an EXPLAIN query will show you which indexes are being utilized, how the table is being scanned and sorted etc... After adding the index to the group_id field:
PHP: What You Need To Know To Play With The Web - Smashing Magaz Advertisement In this article, I’ll introduce you to the fundamentals of PHP. We’ll focus on using PHP to access Web services and on turning static HTML pages into dynamic ones by retrieving data from the Web and by showing different content depending on what the user has entered in a form or requested in the URL. You won’t come out a professional PHP developer, but you’ll be well on your way to building a small page that uses Web services. You can find a lot of great PHP info on the Web, and most of the time you will end up on PHP.net itself. But I was asked repeatedly on several hack days and competitions to write this quick introduction article, so here it is. What Is PHP? PHP is a server-side language that has become a massive success for three reasons: It is a very easy and forgiving language. Installing PHP Locally, And Your First Code To run PHP locally on your computer, you’ll need a local server with PHP enabled. In this file, type (or copy and paste) the following: <? <? <? <ul><? <? <?
PDF Generation with Zend Framework | LiveDocx in PHP - Zend_Service_LiveDocx Generating print-ready well-formatted PDF documents with PHP is not an easy task. Traditionally, there are two main approaches to PDF generation with PHP. Given sufficient time and patience, both partially get the job done, but still leave a lot to be desired: HTML-to-PDF: This approach is widely used in mainstream applications. Here an HTML document is programmatically created and converted to a PDF, using one of the many open source libraries 1. Programmatic: This approach offers total control of the resulting PDF. A completely new approach In this article, the author presents an entirely new, third approach. Before we delve into a technical discussion on the inner workings of this new approach, let us first take a look at a practical example. The code demonstrated in this article ships with Zend Framework 1.10 or newer. Introducing LiveDocx LiveDocx is a SOAP-based document generation service, based on the market-leading, word processing component TX Text Control .NET. Using LiveDocx and
PHP command line syntax checking Posted April 24th, 2010 in PHP The PHP CLI (command line interface) allows basic syntax checking of a PHP file. I'll show the basic usage of this in this post and then a couple of ways to check all files in a directory, and all files recursively down the directory tree as posted by a couple of people on Twitter. Syntax checking a single PHP file from the command line The syntax for checking is like this, where the -l flag is a lower case L: If the syntax in the file is correct you will see this: If there are errors then theses will be listed as in the following example output: Note that the syntax checking only checks for syntax errors - it does not report the usage of variables which have not yet been defined, functions or class which have not be declared etc. So something like this will pass: but these will not: Syntax check all PHP files in the current directory