Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Tomas Votruba:
Hidden Gems of PHP Packages: SymfonyFinder and SplFileInfo
Aug 14, 2018 @ 15:55:09

Tomas Votruba has continued his series covering the "hidden gem" packages he's found in his PHP development. In this latest post he focuses on two new pieces of functionality: the Symfony/Finder package and SplFileInfo.

The series on not-so-well-known packages that might save your ass more than you think continues. Today we look on files as objects.

He starts by providing some examples of where he makes use of the Finder package and how it makes working with files easier. He then shows how to get the package installed, a simple example of how to use it and some of the functionality that's included. He also details the SplFileInfo functionality that comes with the package and what information it can provide about a file.

tagged: package hiddengem tutorial symfony finder splfileinfo

Link: https://www.tomasvotruba.cz/blog/2018/08/13/hidden-gems-of-php-packages-symfony-finder-and-spl-file-info/

Tomas Votruba:
Hidden Gems of PHP Packages: NetteUtils
Jul 31, 2018 @ 15:36:37

Tomas Votruba has a new post to his site sharing what he calls a "hidden gem" of a PHP package that he finds useful: the NetteUtils package. This is the first part of a series of posts dedicated to packages he finds helpful.

In this series, I will show you not-so-known PHP packages, that I happily use in my daily workflow. They're hard to describe in few words for their various features, but awesome and simple to use.

Today we start with NetteUtils package.

He starts with a few points about why he uses the library (including mentioning some specific functionality) and how to get it installed in your own application. He then goes through some example code showing the functionality he uses including the Strings and FileSystem classes.

tagged: hiddengem package netteutils detail install usage tutorial

Link: https://www.tomasvotruba.cz/blog/2018/07/30/hidden-gems-of-php-packages-nette-utils/

Zend Developer Zone:
Zend Framework Hidden Gems: Zend Plumbing
Dec 01, 2006 @ 15:04:00

Aaron Wormus is back today on the Zend Developer Zone with another in his "Hidden Gems" series. This time, he takes a look at the "Zend Plumbing", those bits of connective code that help you make your Zend Framework applications work.

The functionality that he covers in this article are some of the min parts that a lot of ZF coders use every day and might not know it:

  • the Zend class (providing a suite of helper methods)
  • built in Wrapper functions:
    • loadFile
    • loadClass
    • loadInterface
    • isReadable
    • dump
    • exception
  • the Zend registry
Each of these is briefly described with some sample code for the loadFile, loadClass, exceptions and the Registry to give you an idea of how to use it all. As always, you can check out the Zend Framework website for all the details on each of these functionality bits.

tagged: hiddengem zend framework plumbin exception registry wrapper hiddengem zend framework plumbin exception registry wrapper

Link:

Zend Developer Zone:
Zend Framework Hidden Gems: Zend Plumbing
Dec 01, 2006 @ 15:04:00

Aaron Wormus is back today on the Zend Developer Zone with another in his "Hidden Gems" series. This time, he takes a look at the "Zend Plumbing", those bits of connective code that help you make your Zend Framework applications work.

The functionality that he covers in this article are some of the min parts that a lot of ZF coders use every day and might not know it:

  • the Zend class (providing a suite of helper methods)
  • built in Wrapper functions:
    • loadFile
    • loadClass
    • loadInterface
    • isReadable
    • dump
    • exception
  • the Zend registry
Each of these is briefly described with some sample code for the loadFile, loadClass, exceptions and the Registry to give you an idea of how to use it all. As always, you can check out the Zend Framework website for all the details on each of these functionality bits.

tagged: hiddengem zend framework plumbin exception registry wrapper hiddengem zend framework plumbin exception registry wrapper

Link:


Trending Topics: