You are here:Home arrow Zend Framework & PHP
  • Narrow screen resolution
  • Wide screen resolution
  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • green color
  • blue color

Zend Framework

Our contributions to Zend Framework community. We use Zend Framework alot in our every day projects. Read on for some helpful tips and optimization practices for the best PHP development framework of the present.

Getting MIME of remote file with Zend Framework

If you ever need to get content type of remote file from within PHP, this class will come in handy. Supposing you need to check external link if it is an mp3 file. You will be able to do this: $sniffer = new Smartycode_Http_Mime();
$contentType = $sniffer->getMime($url);
if('audio/mpeg3' == $contentType) echo 'It is MP3';

PHP code check

I've started working on PHP Code Check online tool, you can test early version of it here. Internally, it's based on CodeSniffer parser. I am looking forward on to providing more options like uploading files (single or zipped package), prettier output and detailed explanation of errors. This will target Zend coding standards, however other standards might be provided later. Happy testing, and please comment and give your feedback here. Thanks.

Code autocomplete for array objects (foreach)

Here is a quick tip on enabling code auto-completion on array of objects (i.e. when you fetch array of objects from a database table adapter).

How to Download

This is placeholder

Little PHPDoc and SVN Integration

Ever looked through the Zend Framework code and saw header comments like this?

<?php
/**
  * @version   $Id: Exception.php 16200 2009-06-21 18:50:06Z thomas $
  **/

Here is a quick tip on how this can be useful and how to have this type of integration in your projects.

<< Start < Prev 1 2 Next > End >>
Results 1 - 9 of 14