{"id":15677713,"url":"https://github.com/jbrooksuk/php-clamp","last_synced_at":"2025-05-07T01:21:29.519Z","repository":{"id":56996260,"uuid":"289030456","full_name":"jbrooksuk/php-clamp","owner":"jbrooksuk","description":"Clamp one number between a min and max.","archived":false,"fork":false,"pushed_at":"2020-08-28T10:18:10.000Z","size":19,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-03T17:02:57.694Z","etag":null,"topics":["php"],"latest_commit_sha":null,"homepage":"https://james.brooks.page","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/jbrooksuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"jbrooksuk"}},"created_at":"2020-08-20T14:39:26.000Z","updated_at":"2024-01-15T09:04:06.000Z","dependencies_parsed_at":"2022-08-21T14:10:15.423Z","dependency_job_id":null,"html_url":"https://github.com/jbrooksuk/php-clamp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbrooksuk%2Fphp-clamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbrooksuk%2Fphp-clamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbrooksuk%2Fphp-clamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbrooksuk%2Fphp-clamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbrooksuk","download_url":"https://codeload.github.com/jbrooksuk/php-clamp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252794281,"owners_count":21805170,"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":["php"],"created_at":"2024-10-03T16:10:28.481Z","updated_at":"2025-05-07T01:21:29.495Z","avatar_url":"https://github.com/jbrooksuk.png","language":"PHP","funding_links":["https://github.com/sponsors/jbrooksuk"],"categories":[],"sub_categories":[],"readme":"# PHP Clamp\n\nClamp one number between a min and max.\n\n## Usage\n\n```php\n// $number = clamp($value, $min, $max);\n\nclamp(10, 1, 100); // =\u003e 10\nclamp(10, 1, 5); // 5\nclamp(-10, 1, 5); // 1\n```\n\n## License\n\nPHP Clamp is licensed under [The MIT License (MIT)](/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbrooksuk%2Fphp-clamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbrooksuk%2Fphp-clamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbrooksuk%2Fphp-clamp/lists"}