2017 © Pedro Peláez
 

library dates

Date manipulations dedicated to Cyprus Otrhodox Calendar

image

rozdol/dates

Date manipulations dedicated to Cyprus Otrhodox Calendar

  • Thursday, June 14, 2018
  • by rozdol
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

PHP Class for Date manipulations

About

Dedicated to Cyprus Otrhodox Calendar to be used in local projects and libraries., (*1)

Install

cd to your_project_root_dir, (*2)

composer require rozdol/dates:"v1.*"

in Table or Model or Controller, (*3)

use Rozdol\Dates\Dates;
$this->dates = new Dates();
$date_normalized = $this->dates->F_date('01/01/20', 1); // 01.01.2020

Unit Test

cd dates, (*4)

composer update rozdol/dates

To test, (*5)

./vendor/bin/phpunit tests/

Compose library Tutorial

cd dates
composer update
git init
git .
git commit -m 'Initial commit'

Create github repo, (*6)

git remote add origin git@github.com:rozdol/dates.git
git push origin master
  • on github add new release (v1.0.0)
  • On packagist Update Package
  • Login to packagist.org
  • Submit https://github.com/rozdol/dates

Ready to use in project

cd to your_project_root_dir, (*7)

composer require rozdol/dates:"v1.*"

in Table or Model or Controller, (*8)

use Rozdol\Dates\Dates;
$this->dates = new Dates();
$date_normalized = $this->dates->F_date('01/01/20', 1); // 01.01.2020

Connecting Github to Packagist

In Github->Settings->Integrations..->Add->Packagist user: packagist user api_key: packagist->User->Profile->Show API KEY Domain: https://packagist.org, (*9)

Test: New reslease in Github and check the version in Packagist, (*10)

Unit Tests

install local phpunit, (*11)

composer require --dev phpunit/phpunit ^6
mkdir tests
cd tests
mkdir TestCase
cd TestCase
mkdir Funcs

edit DatesTest.php, (*12)

cd dates, (*13)

composer update rozdol/dates

To test, (*14)

./vendor/bin/phpunit tests/

Travis CI

git checkout -b travis
git add .travis.yml
git push origin travis
Detactach from original source
git remote -v
git remote remove origin
git remote add origin git@github.com:rozdol/dates.git
git push origin random_changes

The Versions

14/06 2018

dev-travis

dev-travis

Date manipulations dedicated to Cyprus Otrhodox Calendar

  Sources   Download

MIT

The Development Requires

by Alex Titoff

14/06 2018

dev-master

9999999-dev

Date manipulations dedicated to Cyprus Otrhodox Calendar

  Sources   Download

MIT

The Development Requires

by Alex Titoff

14/06 2018

v1.0.1

1.0.1.0

Date manipulations dedicated to Cyprus Otrhodox Calendar

  Sources   Download

MIT

The Development Requires

by Alex Titoff

14/06 2018

v1.0.2

1.0.2.0

Date manipulations dedicated to Cyprus Otrhodox Calendar

  Sources   Download

MIT

The Development Requires

by Alex Titoff

14/06 2018

v1.0.0

1.0.0.0

Date manipulations dedicated to Cyprus Otrhodox Calendar

  Sources   Download

MIT

The Development Requires

by Alex Titoff