PHP Classes

PHP Season of the Year: Get the names of the seasons in several languages

Recommend this page to a friend!
  Info   View files Documentation   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 33%Total: 78 All time: 10,091 This week: 83Up
Version License PHP version Categories
season-info-multilin 1.0Custom (specified...5Localization, PHP 5, Time and Date
Description 

Author

This class can get the names of the seasons in several languages.

It can take as parameter the name of the year season like summer, spring, autumn and winder, and returns the respective name in different languages.

The season name can be retrieved in different languages like arabic, czech, danish, german, english, spanish, french, hebrew, italian, japanese, ducth, portuguese, russian, chinese, etc..

Innovation Award
PHP Programming Innovation award nominee
May 2017
Number 10
As we all know, each season of the year has a name. The name changes from language to language.

This class can get the names of the year seasons in many different languages.

Manuel Lemos
Picture of Peter Kahl
  Performance   Level  
Name: Peter Kahl <contact>
Classes: 37 packages by
Country: United Kingdom
Age: ???
All time rank: 41721 in United Kingdom
Week rank: 91 Up3 in United Kingdom Up
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Documentation

Season names in 19 languages

Downloads License If this project has business value for you then don't hesitate to support me with a small donation.

Translates name of season into 19 languages and scripts.

  • Arabic (????)
  • Czech (?e?tina)
  • German (Deutsch)
  • Danish (dansk)
  • English GB
  • English US
  • Spanish (Español)
  • French (français)
  • Hebrew (???????)
  • Italian (italiano)
  • Japanese (???)
  • Dutch (Nederlands)
  • Norwegian (norsk)
  • Portuguese (Português)
  • Russian (???????)
  • Slovak (sloven?ina)
  • Chinese simplified (????)
  • Chinese traditional (????)
  • Welsh (Cymraeg)

Usage

usee peterkahl\SeasonInfo\SeasonInfo;

echo SeasonInfo::getName('autumn', 'en-us'); # fall

echo SeasonInfo::getName('autumn', 'en-gb'); # autumn

echo SeasonInfo::getName('spring', 'it');    # primavera

echo SeasonInfo::getName('spring', 'fr');    # printemps

echo SeasonInfo::getName('spring', 'ru');    # ?????

echo SeasonInfo::getName('spring', 'cy');    # gwanwyn

echo SeasonInfo::getName('spring', 'zh-cn'); # ??

echo SeasonInfo::getName('winter', 'ja');    # ?


  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file SeasonInfo.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:78
This week:0
All time:10,091
This week:83Up
 User Ratings  
 
 All time
Utility:50%StarStarStar
Consistency:50%StarStarStar
Documentation:33%StarStar
Examples:-
Tests:-
Videos:-
Overall:33%StarStar
Rank:4129