GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tamperdata/exiges: A simple php library to generate and convert degree numbers. It's also compatible with fzaninotto/Faker.

BranchesTags
Open more actions menu

Latest commit

 

History

36 Commits
36 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 

Repository files navigation

Exiges

A simple php library to generate and convert degree numbers. It's also compatible with fzaninotto/Faker.

Total Downloads Latest Stable Version Build Status

Installing

The package installation can be done with composer by the following command:

composer require tamperdata/exiges

Exiges does not provides Facades or ServiceProviders, they aren't needed.

Usage

1 - Conversor

use Tamperdata\Exiges\Conversor;

$conversor = new Conversor;

$num = 100;

$result1 = $conversor->celsiusToFahrenheit($num);

$result2 = $conversor->celsiusToKelvin($num);

$result3 = $conversor->fahrenheitToCelsius($num);

$result4 = $conversor->fahrenheitToKelvin($num);

$result5 = $conversor->kelvinToCelsius($num);

$result6 = $conversor->kelvinToFahrenheit($num);

2 - Generator

use Tamperdata\Exiges\Generator;

$generator = new Generator;

$degree = 'C';
$num1   = 10;
$num2   = 50;

$result = $generator->temperatureForHumans($degree, $num1, $num2);

3 - Faker

You can also use it with the fantastic Faker library! (It's actually what its designed for)

https://github.com/fzaninotto/Faker

$faker     = \Faker\Factory::create();

$conversor = new \Tamperdata\Exiges\Conversor();
$generator = new \Tamperdata\Exiges\Generator();

$faker->addProvider($generator);
$faker->addProvider($conversor);

$faker->temperatureForHumans('C', -10, 50);
$faker->celsiusToFahrenheit(10);

License

Exiges library is licensed under [The MIT License (MIT)] (https://github.com/tamperdata/exiges/blob/master/LICENSE)(LICENSE).

About

A simple php library to generate and convert degree numbers. It's also compatible with fzaninotto/Faker.

Resources

Readme
License
Activity
Custom properties

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.