{"id":15028910,"url":"https://github.com/mparulski/collection-type","last_synced_at":"2025-06-12T07:32:46.444Z","repository":{"id":29356838,"uuid":"32891200","full_name":"mparulski/collection-type","owner":"mparulski","description":"The library Collection/Map and subtypes with checking the types for PHP","archived":false,"fork":false,"pushed_at":"2015-06-24T18:45:53.000Z","size":520,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T20:44:22.543Z","etag":null,"topics":["php","php-library","php5"],"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/mparulski.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-25T21:14:50.000Z","updated_at":"2018-12-28T21:34:43.000Z","dependencies_parsed_at":"2022-08-19T18:40:11.089Z","dependency_job_id":null,"html_url":"https://github.com/mparulski/collection-type","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mparulski/collection-type","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mparulski%2Fcollection-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mparulski%2Fcollection-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mparulski%2Fcollection-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mparulski%2Fcollection-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mparulski","download_url":"https://codeload.github.com/mparulski/collection-type/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mparulski%2Fcollection-type/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259420593,"owners_count":22854616,"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","php-library","php5"],"created_at":"2024-09-24T20:09:20.271Z","updated_at":"2025-06-12T07:32:46.421Z","avatar_url":"https://github.com/mparulski.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CollectionType\n================\n\n[![License](https://poser.pugx.org/mparulski/collection-type/license.svg)](https://packagist.org/packages/mparulski/collection-type)\n[![Latest Stable Version](https://poser.pugx.org/mparulski/collection-type/v/stable.svg)](https://packagist.org/packages/mparulski/collection-type)\n[![Total Downloads](https://poser.pugx.org/mparulski/collection-type/downloads)](https://packagist.org/packages/mparulski/collection-type)\n\nCollectionType is a library that provides Collection and Map with their subtypes which are checking types of data set for PHP.\n\n## Requirements\n---------------\n\n* PHP 5.5.0 or higher\n\n## Installation\n---------------\n\nCollectionType officially supports only installation through Composer. For Composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).\n\nInstall the module:\n\n```sh\n$ php composer.phar require mparulski/collection-type:0.*\n```\n\n## Example:\n-----------\n    \n```php\nuse CollectionType\\Collection\\CollectionSet\\HashSet;\nuse CollectionType\\TypeValidator\\ObjectTypeValidator;\n    \n$set = new HashSet(new IntegerTypeValidator());\n    \n$set-\u003eadd(1);\n$set-\u003eadd(5);\n\n// throw exception\n$set-\u003eadd(7.2);\n```\n\n## Documentation\n----------------\n\nDocumentation is available in the [/docs](/docs) folder.\n\n# LICENSE\n\nCopyright (c) 2015 Michał Parulski http://opensource.org/licenses/MIT\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nThis software consists of voluntary contributions made by many individuals\nand is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmparulski%2Fcollection-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmparulski%2Fcollection-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmparulski%2Fcollection-type/lists"}