PHPackages                             remithomas/rt-extends - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. remithomas/rt-extends

ActiveLibrary[Testing &amp; Quality](/categories/testing)

remithomas/rt-extends
=====================

ZF2 useful tools

1.0.1(13y ago)143.4k1PHP &gt;=5.3.3

Since May 22Compare

[ Source](https://github.com/remithomas/rt-extends)[ Packagist](https://packagist.org/packages/remithomas/rt-extends)[ Docs](https://github.com/remithomas/rt-extends)[ RSS](/packages/remithomas-rt-extends/feed)WikiDiscussions Synced 6d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

rt-extends [![Build Status](https://camo.githubusercontent.com/b78fefbf1a7b597d405dd444573bbd4620239cee5edfcdac128078227301a0b3/68747470733a2f2f7472617669732d63692e6f72672f72656d6974686f6d61732f72742d657874656e64732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/remithomas/rt-extends)
=========================================================================================================================================================================================================================================================================================================

[](#rt-extends-)

A list of ZF2 useful tools. To provide some utilities to generate list of languages, Sql query (on duplicate key update), flashmessenger, countries states and more

---

Features / Goals
================

[](#features--goals)

- **Sql** : Db\\Sql\\DuplicateInsert ON DUPLICATE KEY UPDATE option
- **Validators** : Date is later, is Earlier
- **Uri**
    - **Thumbnail** : Get Thumbnail from URI
    - **Type** : Get the type of the media
    - **Meta** : Get metadata of the media
- **Useful**
    - **Location** : List of countries, states list, zipcode search
    - **I18n** : continents list, languages list, Timezones list
    - **Data** : Fake data *Lorem Ipsum* generator
    - **File** : create Zip Archive, unzip archive, get Favicon
    - **PHP** : [sprintf](http://php.net/manual/en/function.sprintf.php) with dynamic variables
- **View\\Helper** : extended Flash messenger (sub-message and messages are translated)
    - **Date** : CountDown
    - **BodyClasses** : manage your body CSS classes from controller
- **Snippets** : create basic CSRF quickly

---

Ask for contributions
=====================

[](#ask-for-contributions)

Some ideas [to implement](https://github.com/remithomas/rt-extends/pulls) to this useful code ? Or ups [some errors appear](https://github.com/remithomas/rt-extends/issues)

Requirements
============

[](#requirements)

- [Zend Framework 2](https://github.com/zendframework/zf2) (latest master)
- [umpirsky/country-list](https://github.com/umpirsky/country-list) (latest master)
- ZipArchive
- CURL extension

Installation
============

[](#installation)

---

How to install ?
----------------

[](#how-to-install-)

### Using composer.json

[](#using-composerjson)

```
{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "minimum-stability": "dev",
    "homepage": "http://framework.zend.com/",
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "dev-master",
        "remithomas/rt-extends": "dev-master"
    }
}
```

### Activate the module :

[](#activate-the-module-)

application.config.php

```
