{"id":22174798,"url":"https://github.com/swapnilsarwe/nova-icndb-card","last_synced_at":"2026-04-15T07:40:03.148Z","repository":{"id":32968518,"uuid":"148126230","full_name":"swapnilsarwe/nova-icndb-card","owner":"swapnilsarwe","description":"Laravel Nova Card showing Chuck Norris Joke using ICNDB Api","archived":false,"fork":false,"pushed_at":"2023-07-11T01:01:23.000Z","size":1173,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T06:42:48.897Z","etag":null,"topics":["icndb-api","laravel","laravel-nova"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swapnilsarwe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-09-10T08:50:20.000Z","updated_at":"2022-11-14T08:09:59.000Z","dependencies_parsed_at":"2024-12-02T08:04:24.013Z","dependency_job_id":null,"html_url":"https://github.com/swapnilsarwe/nova-icndb-card","commit_stats":{"total_commits":61,"total_committers":3,"mean_commits":"20.333333333333332","dds":"0.39344262295081966","last_synced_commit":"df306036b773c23cd49e02c01815b6f69657ec8a"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/swapnilsarwe/nova-icndb-card","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilsarwe%2Fnova-icndb-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilsarwe%2Fnova-icndb-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilsarwe%2Fnova-icndb-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilsarwe%2Fnova-icndb-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swapnilsarwe","download_url":"https://codeload.github.com/swapnilsarwe/nova-icndb-card/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilsarwe%2Fnova-icndb-card/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266111439,"owners_count":23877980,"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":["icndb-api","laravel","laravel-nova"],"created_at":"2024-12-02T07:53:36.480Z","updated_at":"2026-04-15T07:39:58.123Z","avatar_url":"https://github.com/swapnilsarwe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Total Downloads](https://poser.pugx.org/swapnilsarwe/nova-icndb-card/downloads)](https://packagist.org/packages/swapnilsarwe/nova-icndb-card)\n\n## Laravel Nova ICNDB Package\nThis packages uses the [ICNDB Api](http://www.icndb.com/api/) to show the random joke on a card on Laravel Nova Dashboard.\n\nHere's how the card will look like on a dashboard.\n\n![alt text](https://raw.githubusercontent.com/swapnilsarwe/nova-icndb/master/card.png \"ICNDB Random Joke\")\n\n## Installation\nYou can install the packace in to a Laravel app that uses Nova via composer:\n```\ncomposer require swapnilsarwe/nova-icndb-card\n```\n\nAs a next step you will have to register the card with your Nova App. You can achieve this by adding the package in the `cards` method of the `NovaServiceProvider`.\n\n```php\n// in app/Providers/NovaServiceProvider.php\n\npublic function cards()\n{\n    return [\n        // ...\n        new \\Swapnilsarwe\\NovaIcndbCard\\NovaIcndbCard,\n    ];\n}\n```\n\n## Configuration\nYou can publish the config using the following command\n```\nphp artisan vendor:publish --provider=\"Swapnilsarwe\\NovaIcndbCard\\CardServiceProvider\"\n```\n\nif for some reason new options are added in config are not visible - do the following\n```\nphp artisan vendor:publish --provider=\"Swapnilsarwe\\NovaIcndbCard\\CardServiceProvider\" --force\n```\n\n### Custom Names in jokes\nYou can now use your own name in the joke by updating the following values in the icndb-config.php in config folder\n\n```php\n...\n'name_to_use' =\u003e [\n    'first_name' =\u003e 'Chuck', // type in your own first name\n    'last_name' =\u003e 'Norris', // type in your own last name\n],\n...\n```\n\nAlso you can configure the category from which you dont want to display jokes on the dashboard.\n\nThe complete list of categories can be checked out here\n```\nhttp://api.icndb.com/categories\n```\n\nBy default all jokes marked as `explicit` are excluded. You can update the config as per your need.\n```php\n...\n'excluded_categories' =\u003e [ \n    // jokes belonging to following categories will not be shown\n    'explicit',\n],\n...\n```\n\n### Security\n\nIf you discover any security related issues, please email swapnilsarwe@gmail.com instead of using the issue tracker.\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%2Fswapnilsarwe%2Fnova-icndb-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswapnilsarwe%2Fnova-icndb-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswapnilsarwe%2Fnova-icndb-card/lists"}