{"id":15654595,"url":"https://github.com/vysinsky/unfinalizer","last_synced_at":"2025-03-30T01:35:31.555Z","repository":{"id":82698460,"uuid":"74377567","full_name":"vysinsky/unfinalizer","owner":"vysinsky","description":"Removes final keyword from any source code for easier testing.","archived":false,"fork":false,"pushed_at":"2015-04-02T13:05:18.000Z","size":212,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-05T03:37:59.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vysinsky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-21T15:29:43.000Z","updated_at":"2016-11-21T15:49:39.000Z","dependencies_parsed_at":"2023-02-25T08:30:52.393Z","dependency_job_id":null,"html_url":"https://github.com/vysinsky/unfinalizer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vysinsky%2Funfinalizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vysinsky%2Funfinalizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vysinsky%2Funfinalizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vysinsky%2Funfinalizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vysinsky","download_url":"https://codeload.github.com/vysinsky/unfinalizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246265148,"owners_count":20749594,"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-10-03T12:52:40.000Z","updated_at":"2025-03-30T01:35:31.534Z","avatar_url":"https://github.com/vysinsky.png","language":"PHP","readme":"dotblue/unfinalizer\n===================\n\nRemoves `final` keyword from any source code for easier **testing**.\n\n## Installation\n\n```\n$ composer require dotblue/unfinalizer\n```\n\nFirst, you have to require autoloader of `Unfinalizer`. Because removing `final` keyword relies on hacking your autoloaders, you have to bypass them all to autoload `Unfinalizer` (including Composer for example).\n\n```php\nrequire __DIR__ . '/vendor/dotblue/unfinalizer/autoload.php';\n```\n\nSecondly, create instance of `Unfinalizer` itself and configure temp directory:\n\n```php\n$unfinalizer = new DotBlue\\Unfinalizer\\Unfinalizer();\n$unfinalizer-\u003esetTempDirectory(__DIR__ . '/vendor-unfinalized');\n```\n\n## Drivers\n\nLast step is registering wrappers for various autoloaders that you may be using.\n\n### Composer\n\nRegister  `DotBlue\\Unfinalizer\\Composer`. It's constructor requires absolute path to the `vendor` directory.\n\n```php\n$unfinalizer-\u003eregister(new DotBlue\\Unfinalizer\\Composer(__DIR__ . '/vendor'));\n```\n\n\u003e That's it, you don't need to require `vendor/autoload.php` by yourself anymore.\n\n### Nette [RobotLoader](https://github.com/nette/robot-loader)\n\nRegister `DotBlue\\Unfinalizer\\NetteRobotLoader`.\n\n```php\n$robotLoader = $unfinalizer-\u003eregister(new DotBlue\\Unfinalizer\\NetteRobotLoader())\n\t-\u003esetCacheStorage(new Nette\\Caching\\Storages\\FileStorage(__DIR__ . '/temp'))\n\t-\u003eaddDirectory(__DIR__ . '/src')\n\t-\u003eregister();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvysinsky%2Funfinalizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvysinsky%2Funfinalizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvysinsky%2Funfinalizer/lists"}