onramplab / laravel-cloud-cost
query cloud cost information
Installs: 2 896
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- aws/aws-sdk-php: ^3.258
- illuminate/support: ^8.0|^9.0
Requires (Dev)
- mockery/mockery: ^1.5
- nunomaduro/larastan: ^1.0
- nunomaduro/phpinsights: ^2.6
- onramplab/onr-phpcs-laravel: ^1.2
- orchestra/testbench: ^6.25
- phpmd/phpmd: ^2.13
- phpunit/phpunit: ^9.5
- rector/rector: ^0.15.3
- sempro/phpunit-pretty-print: ^1.4
- spatie/phpunit-watcher: ^1.23
- squizlabs/php_codesniffer: *
README
Features
- Sync AWS costs and storage to database
- Users can set tags rules in config to query AWS cost
Requirements
- PHP >= 8.1;
- composer.
Features
- Support AWS cost
Installation
composer require onramplab/laravel-cloud-cost
php artisan vendor:publish --provider="OnrampLab\CloudCost\CloudCostServiceProvider"
php artisan migrate
Sync costs to database
php artisan cloud-cost:sync aws_default 2023 1
Running Tests:
php vendor/bin/phpunit
or
composer test
Code Sniffer Tool:
php vendor/bin/phpcs --standard=PSR2 src/
or
composer psr2check
Code Auto-fixer:
composer psr2autofix
composer insights:fix
rector:fix
Building Docs:
php vendor/bin/phpdoc -d "src" -t "docs"
or
composer docs
Changelog
To keep track, please refer to CHANGELOG.md.
Contributing
- Fork it.
- Create your feature branch (git checkout -b my-new-feature).
- Make your changes.
- Run the tests, adding new ones for your own code if necessary (phpunit).
- Commit your changes (git commit -am 'Added some feature').
- Push to the branch (git push origin my-new-feature).
- Create new pull request.
Also please refer to CONTRIBUTION.md.
License
Please refer to LICENSE.
AWS setting
- login AWS
- Menu > Security credentials > User groups
- add "Permissions to "Permissions policies"
- "Cost-Explorer-Service-Admin"