{"id":27899489,"url":"https://github.com/roave/dont","last_synced_at":"2025-05-14T15:07:02.962Z","repository":{"id":45309028,"uuid":"70547449","full_name":"Roave/Dont","owner":"Roave","description":":no_entry_sign: Small set of defensive programming utilities/traits for PHP","archived":false,"fork":false,"pushed_at":"2025-04-28T16:50:20.000Z","size":220,"stargazers_count":399,"open_issues_count":10,"forks_count":21,"subscribers_count":12,"default_branch":"1.7.x","last_synced_at":"2025-04-28T17:48:23.077Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Roave.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":"2016-10-11T02:22:45.000Z","updated_at":"2025-04-21T15:07:35.000Z","dependencies_parsed_at":"2023-10-16T13:12:10.094Z","dependency_job_id":"3cbe4817-2e14-45fb-b1d2-a6c0e6d5e069","html_url":"https://github.com/Roave/Dont","commit_stats":{"total_commits":147,"total_committers":18,"mean_commits":8.166666666666666,"dds":0.6394557823129252,"last_synced_commit":"a657ed032d162a2a869bf8544fccdf7b4c73e2d9"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2FDont","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2FDont/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2FDont/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2FDont/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Roave","download_url":"https://codeload.github.com/Roave/Dont/tar.gz/refs/heads/1.7.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252563167,"owners_count":21768414,"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":[],"created_at":"2025-05-05T19:33:58.535Z","updated_at":"2025-05-05T19:35:25.816Z","avatar_url":"https://github.com/Roave.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Don't\n\n`roave/dont` is a small PHP package aimed at enforcing good\npractices when it comes to designing\n[defensive code](https://ocramius.github.io/extremely-defensive-php/).\n\n[![Infection MSI](https://badge.stryker-mutator.io/github.com/Roave/Dont/1.2.x)](https://infection.github.io)\n[![Packagist](https://img.shields.io/packagist/v/roave/dont.svg)](https://packagist.org/packages/roave/dont)\n[![Packagist](https://img.shields.io/packagist/vpre/roave/dont.svg)](https://packagist.org/packages/roave/dont)\n\n## Installation\n\n```sh\ncomposer require roave/dont\n```\n\n## Usage\n\nThe package currently provides the following traits:\n\n * [`Dont\\DontDeserialise`](docs/DontDeserialise.md)\n * [`Dont\\DontSerialise`](docs/DontSerialise.md)\n * [`Dont\\DontClone`](docs/DontClone.md)\n * [`Dont\\DontGet`](docs/DontGet.md)\n * [`Dont\\DontSet`](docs/DontSet.md)\n * [`Dont\\DontCall`](docs/DontCall.md)\n * [`Dont\\DontCallStatic`](docs/DontCallStatic.md)\n * [`Dont\\DontToString`](docs/DontToString.md)\n * [`Dont\\JustDont`](docs/JustDont.md)\n * [`Dont\\DontInstantiate`](docs/DontInstantiate.md)\n\nUsage is straightforward:\n\n```php\nuse Dont\\DontSerialise;\n\nclass MyClass\n{\n    use DontSerialise;\n}\n\nserialize(new MyClass); // will throw an exception\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froave%2Fdont","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froave%2Fdont","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froave%2Fdont/lists"}