{"id":13620168,"url":"https://github.com/vcian/laravel-db-auditor","last_synced_at":"2025-05-15T06:03:07.224Z","repository":{"id":153034087,"uuid":"624461284","full_name":"vcian/laravel-db-auditor","owner":"vcian","description":"Database DB Auditor provide leverage to audit your MySql database standards and also provide options to add constraints in table","archived":false,"fork":false,"pushed_at":"2025-01-27T13:18:30.000Z","size":2245,"stargazers_count":280,"open_issues_count":1,"forks_count":26,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-15T06:02:41.964Z","etag":null,"topics":["database","database-constraint","database-standard","db-audit","laravel","mysql","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/vcian/laravel-db-auditor","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/vcian.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2023-04-06T14:15:03.000Z","updated_at":"2025-05-03T22:26:51.000Z","dependencies_parsed_at":"2024-01-09T07:38:29.275Z","dependency_job_id":"581df1a7-aaef-4fdb-a8a3-bf116c388eea","html_url":"https://github.com/vcian/laravel-db-auditor","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcian%2Flaravel-db-auditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcian%2Flaravel-db-auditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcian%2Flaravel-db-auditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcian%2Flaravel-db-auditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vcian","download_url":"https://codeload.github.com/vcian/laravel-db-auditor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254283336,"owners_count":22045140,"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":["database","database-constraint","database-standard","db-audit","laravel","mysql","php"],"created_at":"2024-08-01T21:00:53.001Z","updated_at":"2025-05-15T06:03:07.204Z","avatar_url":"https://github.com/vcian.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"art/laravel-db-auditor-hr.svg\" width=\"50%\" alt=\"Logo Laravel DB Auditor\"\u003e\u003c/p\u003e\n\n![Packagist License](https://img.shields.io/packagist/l/vcian/laravel-db-auditor?style=for-the-badge)\n[![Total Downloads](https://img.shields.io/packagist/dt/vcian/laravel-db-auditor?style=for-the-badge)](https://packagist.org/packages/vcian/laravel-db-auditor)\n\n## Introduction\n\n- This package provides to audit process of reviewing and evaluating a mysql, sqlite and postgresql database system.\n- DB Auditor scan your mysql/sqlite/postgresql database and give insights of  standards, constraints and provide option to add the constraints through CLI.\n- The result of audit process shows list of tables \u0026 columns which doesn't have proper standards.\n\n## Installation \u0026 Usage\n\n\u003e **Requires [PHP 8.0+](https://php.net/releases/) | [Laravel 8.0+](https://laravel.com/docs/8.x)**\n\nRequire Laravel DB Auditor  using [Composer](https://getcomposer.org):\n\n```bash\ncomposer require --dev vcian/laravel-db-auditor\n```\n## Usage:\n\nYou can access DB Auditor using below artisan commands.\n\n\u003e #### **php artisan db:audit**\n\u003e \n\u003e This command give you options to select feature like check the database standards or check the constraint.\n\u003e \n\u003e Now, you can skip tables which you don't want to check. Add skip table name in the .db-auditor.php file.\n\u003e\n\n**Note:**\n\nIf you want to check standalone feature then you can execute below artisan command one by one.\n\n\u003e #### **php artisan db:constraint**\n\u003e \n\u003e This command gives you result with list of tables with primary,foreign,unique,index constraint.\n\u003e \n\u003e \n\u003e You can add more constraint to the table by seeing existing constraint with table.\n\u003e \n\u003e Below example give insights about the how to see constraints in table and how to add.\n\u003e \n\u003e Note :-\n\u003e   - SQLite does not allow to define PRIMARY KEY or FOREIGN KEY into a existing table.\n\u003e   - Add constraint option is not support for PostgreSQL. Will release soon.\n\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"art/db-constraint-select-table.png\" width=\"100%\" alt=\"Logo Laravel DB Auditor\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"art/db-constraint-display-table-details.png\" width=\"100%\" alt=\"Logo Laravel DB Auditor\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"art/db-constraint-add.png\" width=\"100%\" alt=\"Logo Laravel DB Auditor\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"art/db-constraint-result.png\" width=\"100%\" alt=\"Logo Laravel DB Auditor\"\u003e\u003c/p\u003e\n\n\n---\n\u003e #### **php artisan db:standard**\n\u003e \n\u003e This command give you result with list of table with standard follow indication.\n\u003e \n\u003e \n\u003e You can also see table specific column name which doesn't have standard followed.\n\u003e\n\u003e Below example give insights of database standards reports and suggestions.\n\u003e\n\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"art/db-standard-cmd-1.png\" width=\"100%\" alt=\"Logo Laravel DB Auditor\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"art/db-standard-table-report-1.png\" width=\"100%\" alt=\"Logo Laravel DB Auditor\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"art/db-standard-table-report-2.png\" width=\"100%\" alt=\"Logo Laravel DB Auditor\"\u003e\u003c/p\u003e\n\n---\n\u003e #### **php artisan db:track**\n\u003e \n\u003e This command give you the track of the database files. Like when it's created with how many field in which table or whom created. this type of information show in the result.\n\u003e \n\u003e \n\u003e You can also filter with --table=, --action=, --status=.\n\u003e Note: \"created by\" return the github username and if it's not git repo than it shows system username.\n\u003e\n\u003cimg src=\"art/track-default.png\" width=\"100%\" alt=\"Track Default\"\u003e\u003c/p\u003e\n\u003cimg src=\"art/track-table.png\" width=\"100%\" alt=\"Track Default\"\u003e\u003c/p\u003e\n\u003cimg src=\"art/track-st-pending.png\" width=\"100%\" alt=\"Track Default\"\u003e\u003c/p\u003e\n\u003cimg src=\"art/track-ac-create.png\" width=\"100%\" alt=\"Track Default\"\u003e\u003c/p\u003e\n**Note:**\n\nYou have to set your database name with _DB_DATABASE_ parameter in you laravel .env file to use this feature.\n\n## ACCESS WEB PAGE\n\nYou can also access this feature through WEB UI. To access web UI, kindly execute below command.\n\nphp artisan vendor:publish --tag=public\n\nselect \"db-auditor\"\n\nRoute - To access the web UI  \"/laravel-db-auditor\"\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"art/db-standard-ui.png\" width=\"100%\" alt=\"Laravel DB Auditor UI\"\u003e\u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"art/db-standard-details-ui.png\" width=\"100%\" alt=\"Laravel DB Auditor UI\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"art/db-constraint-ui.png\" width=\"100%\" alt=\"Laravel DB Auditor UI\"\u003e\u003c/p\u003e\n\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n       We believe in \n            👇\n          ACT NOW\n      PERFECT IT LATER\n    CORRECT IT ON THE WAY.\n\n## Security\n\nIf you discover any security-related issues, please email ruchit.patel@viitor.cloud instead of using the issue tracker.\n\n## Credits\n\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvcian%2Flaravel-db-auditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvcian%2Flaravel-db-auditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvcian%2Flaravel-db-auditor/lists"}