{"id":19747767,"url":"https://github.com/nikolaysav/nova-percent-field","last_synced_at":"2025-04-14T21:45:32.185Z","repository":{"id":47103888,"uuid":"150285046","full_name":"NikolaySav/nova-percent-field","owner":"NikolaySav","description":" Laravel Nova field for displaying percents","archived":false,"fork":false,"pushed_at":"2024-08-06T00:43:33.000Z","size":168,"stargazers_count":21,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T09:51:31.668Z","etag":null,"topics":["field","laravel","nova","percent","vue"],"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/NikolaySav.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-25T15:07:02.000Z","updated_at":"2022-09-16T00:18:14.000Z","dependencies_parsed_at":"2025-01-07T23:10:15.420Z","dependency_job_id":null,"html_url":"https://github.com/NikolaySav/nova-percent-field","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"ebe8597715f0196282c6f23d6dfd4b7d225820f7"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolaySav%2Fnova-percent-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolaySav%2Fnova-percent-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolaySav%2Fnova-percent-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolaySav%2Fnova-percent-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikolaySav","download_url":"https://codeload.github.com/NikolaySav/nova-percent-field/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248966886,"owners_count":21190862,"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":["field","laravel","nova","percent","vue"],"created_at":"2024-11-12T02:18:51.742Z","updated_at":"2025-04-14T21:45:32.168Z","avatar_url":"https://github.com/NikolaySav.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Percent field for Laravel Nova\n Laravel Nova field for displaying percents\n \nUsually percents are stored in the database in a decimal form (e.g. 0.1615 which equals to 16.15%).\nIn order to simplify formatting one can use this package.\n\n### 1. Index view\n![screenshot 1](https://raw.githubusercontent.com/NikolaySav/nova-percent-field/master/docs/index.png)\n### 2. Detailed view\n![screenshot 1](https://raw.githubusercontent.com/NikolaySav/nova-percent-field/master/docs/detailed.png)\n### 3. Form view\n![screenshot 1](https://raw.githubusercontent.com/NikolaySav/nova-percent-field/master/docs/form.png)\n\n## Installation\n\nYou can install the package into a Laravel app that uses [Nova](https://nova.laravel.com) via composer:\n\n```bash\ncomposer require nsavinov/nova-percent-field\n```\n\n## Usage\nInside the resource:\n\n```php\nuse Nsavinov\\NovaPercentField\\Percent;\n\npublic function fields(Request $request)\n{\n    return [\n        // ...\n                    Percent::make('Rate')\n                    \n                        // possible options\n                        \n                        -\u003estoredInDecimal(true) // true by default (converts 0.15 to 15.00)\n                        -\u003eprecision(2) // digits after dot\n                        \n                        -\u003estoredInDecimal(false) // for displaying raw value from database\n                        \n                        -\u003edisplayPercentSign(true) // true by default\n    ];\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolaysav%2Fnova-percent-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikolaysav%2Fnova-percent-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolaysav%2Fnova-percent-field/lists"}