{"id":21846174,"url":"https://github.com/owenvoke/laravel-dashboard-cloudflare-stats-tile","last_synced_at":"2025-04-14T13:23:03.691Z","repository":{"id":57034392,"uuid":"260230881","full_name":"owenvoke/laravel-dashboard-cloudflare-stats-tile","owner":"owenvoke","description":"A tile for Laravel Dashboard that displays statistics from Cloudflare","archived":false,"fork":false,"pushed_at":"2020-10-05T07:58:52.000Z","size":28,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T02:38:43.527Z","etag":null,"topics":["laravel","laravel-dashboard","laravel-dashboard-tile","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/owenvoke/laravel-dashboard-cloudflare-stats-tile","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/owenvoke.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"owenvoke","custom":"https://offset.earth/owenvoke?gift-trees"}},"created_at":"2020-04-30T14:15:47.000Z","updated_at":"2022-05-19T09:59:10.000Z","dependencies_parsed_at":"2022-08-23T20:50:45.984Z","dependency_job_id":null,"html_url":"https://github.com/owenvoke/laravel-dashboard-cloudflare-stats-tile","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Flaravel-dashboard-cloudflare-stats-tile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Flaravel-dashboard-cloudflare-stats-tile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Flaravel-dashboard-cloudflare-stats-tile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Flaravel-dashboard-cloudflare-stats-tile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owenvoke","download_url":"https://codeload.github.com/owenvoke/laravel-dashboard-cloudflare-stats-tile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886778,"owners_count":21177745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","laravel-dashboard","laravel-dashboard-tile","php"],"created_at":"2024-11-27T23:13:11.746Z","updated_at":"2025-04-14T13:23:03.649Z","avatar_url":"https://github.com/owenvoke.png","language":"PHP","funding_links":["https://github.com/sponsors/owenvoke","https://offset.earth/owenvoke?gift-trees"],"categories":[],"sub_categories":[],"readme":"# Cloudflare Statistics Tile\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-github-actions]][link-github-actions]\n[![Style CI][ico-styleci]][link-styleci]\n[![Total Downloads][ico-downloads]][link-downloads]\n[![Buy us a tree][ico-treeware-gifting]][link-treeware-gifting]\n\nA tile for Laravel Dashboard that displays statistics from Cloudflare\n\n## Install\n\nVia Composer\n\n```bash\n$ composer require owenvoke/laravel-dashboard-cloudflare-stats-tile\n```\n\n## Usage\n\nIn the `dashboard` config file, you must add this configuration in the `tiles` key. The `domains` should contain any domain id that you want to display on the dashboard.\n\n```php\n// in config/dashboard.php\n\nreturn [\n    // ...\n    'tiles' =\u003e [\n        'cloudflare_stats' =\u003e [\n            'key' =\u003e env('CLOUDFLARE_KEY'),\n            'email' =\u003e env('CLOUDFLARE_EMAIL'),\n            'domains' =\u003e ['domain-ids-array'],\n        ],\n    ],\n];\n```\n\nIn `app\\Console\\Kernel.php` you should schedule the `OwenVoke\\CloudflareStatsTile\\Commands\\FetchCloudflareStatisticsCommand` to run every `x` minutes.\n\n```php\n// in app/console/Kernel.php\n\nprotected function schedule(Schedule $schedule)\n{\n    $schedule-\u003ecommand(\\OwenVoke\\CloudflareStatsTile\\Commands\\FetchCloudflareStatisticsCommand::class)-\u003eeveryThirtyMinutes();\n}\n```\n\nIn your dashboard view you use the `livewire:cloudflare-stats-tile` component.\n\n```blade\n\u003cx-dashboard\u003e\n    \u003clivewire:cloudflare-stats-tile position=\"a1\" /\u003e\n\u003c/x-dashboard\u003e\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n```bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email security@voke.dev instead of using the issue tracker.\n\n## Credits\n\n- [Owen Voke][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Treeware\n\nYou're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.\n\nIt’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.\n\nYou can buy trees [here][link-treeware-gifting].\n\nRead more about Treeware at [treeware.earth][link-treeware].\n\n[ico-version]: https://img.shields.io/packagist/v/owenvoke/laravel-dashboard-cloudflare-stats-tile.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-github-actions]: https://img.shields.io/github/workflow/status/owenvoke/laravel-dashboard-cloudflare-stats-tile/Continuous%20Integration.svg?style=flat-square\n[ico-styleci]: https://styleci.io/repos/260230881/shield\n[ico-downloads]: https://img.shields.io/packagist/dt/owenvoke/laravel-dashboard-cloudflare-stats-tile.svg?style=flat-square\n[ico-treeware-gifting]: https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/owenvoke/laravel-dashboard-cloudflare-stats-tile\n[link-github-actions]: https://github.com/owenvoke/laravel-dashboard-cloudflare-stats-tile/actions\n[link-styleci]: https://styleci.io/repos/260230881\n[link-downloads]: https://packagist.org/packages/owenvoke/laravel-dashboard-cloudflare-stats-tile\n[link-treeware]: https://treeware.earth\n[link-treeware-gifting]: https://offset.earth/owenvoke?gift-trees\n[link-author]: https://github.com/owenvoke\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowenvoke%2Flaravel-dashboard-cloudflare-stats-tile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowenvoke%2Flaravel-dashboard-cloudflare-stats-tile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowenvoke%2Flaravel-dashboard-cloudflare-stats-tile/lists"}