{"id":13562636,"url":"https://github.com/Roave/no-leaks","last_synced_at":"2025-04-03T18:34:07.518Z","repository":{"id":34299775,"uuid":"175700169","full_name":"Roave/no-leaks","owner":"Roave","description":":potable_water: PHPUnit Plugin for detecting Memory Leaks in code and tests","archived":false,"fork":false,"pushed_at":"2024-05-22T12:04:45.000Z","size":1139,"stargazers_count":497,"open_issues_count":7,"forks_count":18,"subscribers_count":15,"default_branch":"1.6.x","last_synced_at":"2024-05-22T13:28:53.698Z","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}},"created_at":"2019-03-14T21:10:31.000Z","updated_at":"2024-05-28T07:03:43.313Z","dependencies_parsed_at":"2023-10-12T14:19:47.307Z","dependency_job_id":"720a9185-c881-41c6-82b8-262ea349936d","html_url":"https://github.com/Roave/no-leaks","commit_stats":{"total_commits":268,"total_committers":12,"mean_commits":"22.333333333333332","dds":0.6082089552238805,"last_synced_commit":"bd4c6ad08713b69eae3042cfbb4b269d29fd9e24"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2Fno-leaks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2Fno-leaks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2Fno-leaks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2Fno-leaks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Roave","download_url":"https://codeload.github.com/Roave/no-leaks/tar.gz/refs/heads/1.6.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247057188,"owners_count":20876531,"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":"2024-08-01T13:01:10.611Z","updated_at":"2025-04-03T18:34:02.496Z","avatar_url":"https://github.com/Roave.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# roave/no-leaks\n\n[![Latest Stable Version](https://poser.pugx.org/roave/no-leaks/v/stable.png)](https://packagist.org/packages/roave/no-leaks)\n\n![roave/no-leaks](./logo/no-leaks.png)\n\nThis library is a [PHPUnit](https://github.com/sebastianbergmann/phpunit) plugin\nthat detects memory leaks in tested code or tests.\nIt utilizes `memory_get_usage()` to make sure the code being executed properly cleans up after itself.\n\n## Installation\n\n```sh\ncomposer require --dev roave/no-leaks\n```\n\n## Usage\n\n```sh\nvendor/bin/roave-no-leaks\n```\n\nIf any memory leaks are detected, you should see an output like\nfollowing:\n\n```text\nException: The following test produced memory leaks:\n * My\\Leaky\\Test::testSomething\n * My\\Leaky\\Test::testSomethingElse\n```\n\n## Configuration and Parameters\n\n[`vendor/bin/roave-no-leaks`](./bin/roave-no-leaks) supports all\nconfiguration parameters and console parameters of PHPUnit.\n\n## Known Issues\n\nPlease be aware that this is not a full substitute for PHPUnit:\n\n* the output format is to be improved\n* memory leak detection for scalar types and arrays is not reliable\n* can fail depending on xdebug/phpdbg/php-sapi changes\n\n## Professional Support\n\nIf you need help with setting up this library in your project,\nyou can contact us at team@roave.com for consulting/support.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRoave%2Fno-leaks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRoave%2Fno-leaks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRoave%2Fno-leaks/lists"}