Download the PHP package remithomas/rt-extends without Composer
On this page you can find all versions of the php package remithomas/rt-extends. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download remithomas/rt-extends
More information about remithomas/rt-extends
Files in remithomas/rt-extends
Package rt-extends
Short Description ZF2 useful tools
License
Homepage https://github.com/remithomas/rt-extends
Informations about the package 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
- 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 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
Some ideas to implement to this useful code ? Or ups some errors appear
Requirements
- Zend Framework 2 (latest master)
- umpirsky/country-list (latest master)
- ZipArchive
- CURL extension
Installation
How to install ?
Using composer.json
Activate the module :
application.config.php
Examples
Db\Sql
Sql class including DuplicateInsert.php
Db\Sql\DuplicateInsert
the above code generates this query
Validator\Date\IsLater
Validator\Date\IsEarlier
Uri
Uri\Thumb
Get list of thumbnail of an URI
Get one thumbnail of an URI
Uri\Type
Get the type of the media
Uri\MetaData
Get the meta of the media. All URI gets title and description
Useful\I18n\Languages
List of languages
Useful\Location
List of countries (array returned)
Zipcode
States of countries (DE,FR,US are available)
Counties of countries (FR,US are available)
Useful\File\Zip
Create zip file
Unzip archive
Useful\Data\Fake
Lorem Ipsum : Paragraph
Generate paragraphs
If you don't need to get a list of random paragraphs, just do like that
Lorem Ipsum : Words
Useful\Php\String
View\Helper\ExtendedFlashMessenger
In your layout
In your controller
With variable
Date view helper : countdown
BodyClasses view helper
Inside your controller
Inside your view script
Snippets
Some quick snippets
Snippets\Form\Element
Snippets\Js
Jquery
Jquery UI
Thanks
- To Saša Stamenković for his great module.
- To Thomas Schultz for Ziptastic and don't forget to support this module!
Todo
- many other validators
- Fake data (more tool)
- some good helpers
- Currency
- More countries
All versions of rt-extends with dependencies
umpirsky/country-list Version dev-master
zendframework/zendframework Version 2.*