2017 © Pedro Peláez
 

library loans

Module to calculate loans

image

rozdol/loans

Module to calculate loans

  • Wednesday, July 11, 2018
  • by rozdol
  • Repository
  • 1 Watchers
  • 0 Stars
  • 40 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PHP Component to calculate loans and deposits

About

Module to calculate loans., (*1)

Install

cd to your_project_root_dir, (*2)

composer require rozdol/loans

in Table or Model or Controller, (*3)

use Rozdol\Loans\Loans;
$this->loans = new Loans();
$data=[...];
$result = $this->loan->calcLoan($data);

Unit Test

cd loans, (*4)

composer update rozdol/loans

To test, (*5)

./vendor/bin/phpunit tests/

Compose library Tutorial

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

Create github repo, (*6)

git remote add origin git@github.com:rozdol/loans.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/loans

Ready to use in project

cd to your_project_root_dir, (*7)

composer require rozdol/loans:"v1.*"

in Table or Model or Controller, (*8)

use Rozdol\Loans\Loans;
$this->loans = new Loans();
$date_normalized = $this->loans->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 LoansTest.php, (*12)

cd loans, (*13)

composer update rozdol/loans

To test, (*14)

./vendor/bin/phpunit tests/

in GitHub Project / Settings / Services / Add Packagist, (*15)

User: rozdol
Token: https://packagist.org/profile/ -> Your API Token
Domain: https://packagist.org
Active: true
Add Service: click

Travis CI

git checkout -b travis
git add .travis.yml
git push origin travis

in GitHub Project / Settings / Services / Add Packagist, (*16)

User: rozdol
Token: https://travis-ci.org/profile/rozdol -> Copy API Token
Domain: notify.travis-ci.org
Active: true
Add Service: click

Got to Travis Press + , swipe activation, (*17)

Detactach from original source
git remote -v
git remote remove origin
git remote add origin git@github.com:rozdol/loans.git
git push origin random_changes

The Versions

11/07 2018

dev-master

9999999-dev

Module to calculate loans

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Titoff

11/07 2018

v1.0.2

1.0.2.0

Module to calculate loans

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Titoff

29/06 2018

v1.0.1

1.0.1.0

Module to calculate loans

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Titoff

20/06 2018

v1.0.0

1.0.0.0

Module to calculate loans

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Titoff