{"id":18382855,"url":"https://github.com/e-commit/scalar-values","last_synced_at":"2026-02-16T17:31:53.143Z","repository":{"id":56974781,"uuid":"239158837","full_name":"e-commit/scalar-values","owner":"e-commit","description":"Test scalar values","archived":false,"fork":false,"pushed_at":"2025-03-15T13:17:47.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-10T15:31:51.596Z","etag":null,"topics":["php","scalar-values"],"latest_commit_sha":null,"homepage":null,"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/e-commit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"zenodo":null}},"created_at":"2020-02-08T15:56:56.000Z","updated_at":"2025-03-15T13:17:51.000Z","dependencies_parsed_at":"2023-02-09T23:15:35.143Z","dependency_job_id":"819e9ada-1429-4fe7-a862-2aead38e9389","html_url":"https://github.com/e-commit/scalar-values","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"37d587ef8e65f2b445ab39801e5c5b200d9ff39f"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/e-commit/scalar-values","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-commit%2Fscalar-values","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-commit%2Fscalar-values/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-commit%2Fscalar-values/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-commit%2Fscalar-values/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e-commit","download_url":"https://codeload.github.com/e-commit/scalar-values/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-commit%2Fscalar-values/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29513955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","scalar-values"],"created_at":"2024-11-06T01:08:55.519Z","updated_at":"2026-02-16T17:31:53.113Z","avatar_url":"https://github.com/e-commit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scalar Values Tools\n\n![Tests](https://github.com/e-commit/scalar-values/workflows/Tests/badge.svg)\n\n## Installation ##\n\nTo install scalar-values with Composer just run :\n\n```bash\n$ composer require ecommit/scalar-values\n```\n\n## Usage ##\n\nTest if an array contains only scalar values :\n\n```php\nuse Ecommit\\ScalarValues\\ScalarValues;\n\n$array = ['str1', 2, 3];\nif (ScalarValues::containsOnlyScalarValues($array)) { //True\n    //...\n} else {\n    //...\n}\n\n$array = ['str1', ['tab'], 3];\nif (ScalarValues::containsOnlyScalarValues($array)) { //False\n    //...\n} else {\n    //...\n}\n```\n\nReturns the input array after deleting all non-scalar values (on root):\n\n```php\nuse Ecommit\\ScalarValues\\ScalarValues;\n\n$array = ['str1', ['tab'], 3];\n$newArray = ScalarValues::filterScalarValues($array); //[0 =\u003e 'str1', 2 =\u003e 3]\n```\n\n## License ##\n\nThis librairy is under the MIT license. See the complete license in *LICENSE* file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-commit%2Fscalar-values","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe-commit%2Fscalar-values","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-commit%2Fscalar-values/lists"}