tobiasfp/economics-php
Composer 安装命令:
composer require tobiasfp/economics-php
包简介
A wrapper for the E-conomics api
README 文档
README
1.1. What is it
A basic wrapper around the Economics api, with input & output validation/verification.
1.2. How to install/use
Simply add it via composer:
composer require tobiasfp/economics-php
Then use:
$econ = new Economics\Economics("demo", "demo");
$econ->createCustomer("DKK", $econ->customerGroup(1), "test" $econ->paymentTerms(1), $econ->vatZone(1));
For better documentation on how to use it, see the economicsTest.php file. Everything has at least one test, so it should give you a good overview.
1.3. Why no docblocks?
I hate docblocks.! If a programming language does not support something, it should be fixed in the language, not by addition of features outside the scope of the language. In my opinion, PHP8 completely removed the need for docblocks. Also, docblocks makes PHP less readable.! TypeHint everything instead.!
If you want to add docblocks to this project for your own use, I will allow it, since we are all different, however, I will not maintain them.!
统计信息
- 总下载量: 172
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-20