Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (86) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2022-04-27 (23 days ago) | Not yet rated by the users | Total: 32 This week: 11 | All time: 10,461 This week: 19 |
Version | License | PHP version | Categories | |||
currency-calculator- 1.0 | MIT/X Consortium ... | 5 | PHP 5, Files and Folders, Finances, C... |
Description | Author | |||
This package can calculate commissions on currency transactions. Innovation Award
|
1) clone the repository
2) navigate to project folder
3) run `
composer install`
4) copy .env.example as .env
5) run (optional) `
php artisan config:cache`
php artisan calculate:commission input.csv
Output
0.60
3.00
0.00
0.06
1.50
0
0.70
0.30
0.30
3.00
0.00
0.00
8612
php artisan test
./vendor/bin/phpstan analyze
if necessary add memory limit
./vendor/bin/phpstan analyze --memory-limit=1G
./vendor/bin/phpcs
Files |
File | Role | Description | ||
---|---|---|---|---|
app (6 directories) | ||||
bootstrap (1 file) | ||||
config (16 files) | ||||
database (3 directories) | ||||
public (3 files) | ||||
resources (3 directories) | ||||
routes (4 files) | ||||
tests (2 files, 2 directories) | ||||
.editorconfig | Data | Auxiliary data | ||
.env.example | Data | Auxiliary data | ||
.styleci.yml | Data | Auxiliary data | ||
artisan | Class | Class source | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
input.csv | Data | Auxiliary data | ||
package.json | Data | Auxiliary data | ||
phpcs.xml | Data | Auxiliary data | ||
phpstan.neon | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
server.php | Aux. | Auxiliary script | ||
webpack.mix.js | Data | Auxiliary data |
Files | / | app |
Files | / | app | / | Console | / | Commands |
File | Role | Description |
---|---|---|
CalculateCommissionsCommand.php | Class | Class source |
Files | / | app | / | Http |
File | Role | Description | ||
---|---|---|---|---|
Controllers (1 file) | ||||
Middleware (8 files) | ||||
Kernel.php | Class | Class source |
Files | / | app | / | Http | / | Middleware |
File | Role | Description |
---|---|---|
Authenticate.php | Class | Class source |
EncryptCookies.php | Class | Class source |
PreventRequestsDuringMaintenance.php | Class | Class source |
RedirectIfAuthenticated.php | Class | Class source |
TrimStrings.php | Class | Class source |
TrustHosts.php | Class | Class source |
TrustProxies.php | Class | Class source |
VerifyCsrfToken.php | Class | Class source |
Files | / | app | / | Providers |
File | Role | Description |
---|---|---|
AppServiceProvider.php | Class | Class source |
AuthServiceProvider.php | Class | Class source |
BroadcastServiceProvider.php | Class | Class source |
EventServiceProvider.php | Class | Class source |
RouteServiceProvider.php | Class | Class source |
Files | / | app | / | Services |
File | Role | Description | ||
---|---|---|---|---|
Commissions (2 files) | ||||
Currency (2 files) | ||||
Rates (2 files) | ||||
Transaction (4 files) | ||||
Transactions (2 files) |
Files | / | app | / | Services | / | Commissions |
File | Role | Description |
---|---|---|
CommissionCalculator.php | Class | Class source |
CommissionCalculatorInterface.php | Class | Class source |
Files | / | app | / | Services | / | Currency |
File | Role | Description |
---|---|---|
CurrencyConfigurator.php | Class | Class source |
CurrencyConfiguratorInterface.php | Class | Class source |
Files | / | app | / | Services | / | Rates |
File | Role | Description |
---|---|---|
Rates.php | Class | Class source |
RatesInterface.php | Class | Class source |
Files | / | app | / | Services | / | Transaction |
File | Role | Description |
---|---|---|
Deposit.php | Class | Class source |
TransactionAbstract.php | Class | Class source |
TransactionInterface.php | Class | Class source |
Withdraw.php | Class | Class source |
Files | / | app | / | Services | / | Transactions |
File | Role | Description |
---|---|---|
TransactionList.php | Class | Class source |
TransactionListInterface.php | Class | Class source |
Files | / | config |
File | Role | Description |
---|---|---|
app.php | Class | Class source |
auth.php | Class | Class source |
broadcasting.php | Aux. | Auxiliary script |
cache.php | Aux. | Auxiliary script |
commissions.php | Aux. | Auxiliary script |
cors.php | Aux. | Auxiliary script |
database.php | Aux. | Auxiliary script |
filesystems.php | Aux. | Auxiliary script |
hashing.php | Aux. | Auxiliary script |
logging.php | Class | Class source |
mail.php | Aux. | Auxiliary script |
queue.php | Aux. | Auxiliary script |
sanctum.php | Class | Class source |
services.php | Aux. | Auxiliary script |
session.php | Aux. | Auxiliary script |
view.php | Aux. | Auxiliary script |
Files | / | database | / | migrations |
File | Role | Description |
---|---|---|
2014_10_12_000000_create_users_table.php | Class | Class source |
2014_10_12_100000_...rd_resets_table.php | Class | Class source |
2019_08_19_000000_...iled_jobs_table.php | Class | Class source |
2019_12_14_000001_...ss_tokens_table.php | Class | Class source |
Files | / | public |
File | Role | Description |
---|---|---|
.htaccess | Data | Auxiliary data |
index.php | Class | Class source |
robots.txt | Doc. | Documentation |
Files | / | resources | / | js |
File | Role | Description |
---|---|---|
app.js | Data | Auxiliary data |
bootstrap.js | Data | Auxiliary data |
Files | / | resources | / | lang | / | en |
File | Role | Description |
---|---|---|
auth.php | Aux. | Auxiliary script |
pagination.php | Aux. | Auxiliary script |
passwords.php | Aux. | Auxiliary script |
validation.php | Aux. | Auxiliary script |
Files | / | routes |
File | Role | Description |
---|---|---|
api.php | Example | Example script |
channels.php | Example | Example script |
console.php | Example | Example script |
web.php | Aux. | Auxiliary script |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
assets (1 file) | ||||
Feature (1 file) | ||||
CreatesApplication.php | Class | Class source | ||
TestCase.php | Class | Class source |
Files | / | tests | / | Feature |
File | Role | Description |
---|---|---|
CommissionCalculationOutputTest.php | Class | Class source |
currency-calculator--2022-04-27.zip 88KB | |
currency-calculator--2022-04-27.tar.gz 67KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.