{"id":18838994,"url":"https://github.com/schmeits/pulse-database-table-info","last_synced_at":"2025-04-14T06:51:02.947Z","repository":{"id":219109456,"uuid":"748190198","full_name":"schmeits/pulse-database-table-info","owner":"schmeits","description":"A Laravel Pulse card displaying the table info of the current database.","archived":false,"fork":false,"pushed_at":"2024-04-29T23:09:07.000Z","size":158,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-30T00:25:36.495Z","etag":null,"topics":["laravel","livewire","php","pulse"],"latest_commit_sha":null,"homepage":"","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/schmeits.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"schmeits"}},"created_at":"2024-01-25T13:16:48.000Z","updated_at":"2024-04-30T00:25:41.785Z","dependencies_parsed_at":"2024-01-26T12:52:41.317Z","dependency_job_id":"fd430012-3396-453b-a841-0192361604a5","html_url":"https://github.com/schmeits/pulse-database-table-info","commit_stats":null,"previous_names":["schmeits/pulse-database-table-sizes","schmeits/pulse-database-table-info"],"tags_count":14,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmeits%2Fpulse-database-table-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmeits%2Fpulse-database-table-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmeits%2Fpulse-database-table-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmeits%2Fpulse-database-table-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schmeits","download_url":"https://codeload.github.com/schmeits/pulse-database-table-info/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837274,"owners_count":21169373,"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","livewire","php","pulse"],"created_at":"2024-11-08T02:41:29.958Z","updated_at":"2025-04-14T06:51:02.921Z","avatar_url":"https://github.com/schmeits.png","language":"PHP","readme":"# A Laravel Pulse card displaying the table info of the current database.\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/schmeits/pulse-database-table-info.svg?style=flat-square)](https://packagist.org/packages/schmeits/pulse-database-table-info)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/schmeits/pulse-database-table-info/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/schmeits/pulse-database-table-info/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/schmeits/pulse-database-table-info/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/schmeits/pulse-database-table-info/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/schmeits/pulse-database-table-info.svg?style=flat-square)](https://packagist.org/packages/schmeits/pulse-database-table-info)\n\nThis pulse card displays the tables in the database with their corresponding info (size and rows).\n\n![example-screenshot.png](docs-assets%2Fscreenshots%2Fexample-screenshot.png)\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require schmeits/pulse-database-table-info\n```\n\n## Register the recorder\n\nTo run the checks you must add the `TableInfoRecorder` to the `pulse.php` file.\n\n```diff\nreturn [\n    // ...\n    \n    'recorders' =\u003e [\n+        \\Schmeits\\Pulse\\DatabaseTableInfo\\Recorders\\TableInfoRecorder::class =\u003e [],\n    ]\n]\n```\n\nYou also need to be running [the `pulse:check` command](https://laravel.com/docs/10.x/pulse#dashboard-cards).\n\n## Configure the recorder\n```php\n\\Schmeits\\Pulse\\DatabaseTableInfo\\Recorders\\TableInfoRecorder::class =\u003e [\n    'enabled' =\u003e env('PULSE_DATABASE_TABLE_ENABLED', true), // ebabling the recorder\n    'ignore' =\u003e [\n        '#^pulse#', // Ignore pulse entries...\n        '#^telescope#', // Ignore telescope entries...\n        '#^health_check_result#', // ignore health_check_results\n    ],\n],\n```\n\n## Add to your dashboard\n\nTo add the card to the Pulse dashboard, you must first [publish the vendor view](https://laravel.com/docs/10.x/pulse#dashboard-customization).\n\nThen, you can modify the `dashboard.blade.php` file:\n\n```diff\n\u003cx-pulse\u003e\n+    \u003clivewire:pulse.table-info cols='4' rows='2' /\u003e\n\n    \u003clivewire:pulse.servers cols=\"full\" /\u003e\n\n    \u003clivewire:pulse.usage cols=\"4\" rows=\"2\" /\u003e\n\n    \u003clivewire:pulse.queues cols=\"4\" /\u003e\n\n    \u003clivewire:pulse.cache cols=\"4\" /\u003e\n\n    \u003clivewire:pulse.slow-queries cols=\"8\" /\u003e\n\n    \u003clivewire:pulse.exceptions cols=\"6\" /\u003e\n\n    \u003clivewire:pulse.slow-requests cols=\"6\" /\u003e\n\n    \u003clivewire:pulse.slow-jobs cols=\"6\" /\u003e\n\n    \u003clivewire:pulse.slow-outgoing-requests cols=\"6\" /\u003e\n\n\u003c/x-pulse\u003e\n```\n\nThat's it :)\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Credits\n\n- [Tally Schmeits](https://github.com/schmeits)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":["https://github.com/sponsors/schmeits"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmeits%2Fpulse-database-table-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschmeits%2Fpulse-database-table-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmeits%2Fpulse-database-table-info/lists"}