承接 rozdol/loans 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rozdol/loans

Composer 安装命令:

composer require rozdol/loans

包简介

Module to calculate loans

README 文档

README

About

Module to calculate loans.

Install

cd to your_project_root_dir

composer require rozdol/loans

in Table or Model or Controller

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

Unit Test

cd loans

composer update rozdol/loans

To test

./vendor/bin/phpunit tests/

Compose library Tutorial

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

Create github repo

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

composer require rozdol/loans:"v1.*"

in Table or Model or Controller

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

Test: New reslease in Github and check the version in Packagist

Unit Tests

install local phpunit

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

edit LoansTest.php

cd loans

composer update rozdol/loans

To test

./vendor/bin/phpunit tests/

in GitHub Project / Settings / Services / Add Packagist

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

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

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

统计信息

  • 总下载量: 261
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固