{"id":21556799,"url":"https://github.com/christophemaymard/php-code","last_synced_at":"2025-03-18T03:22:30.139Z","repository":{"id":56954433,"uuid":"240492455","full_name":"christophemaymard/php-code","owner":"christophemaymard","description":"Provides support to mangle C++ names.","archived":false,"fork":false,"pushed_at":"2020-04-03T04:47:36.000Z","size":578,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T10:32:29.222Z","etag":null,"topics":["code","mangling","php"],"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/christophemaymard.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":"2020-02-14T11:22:44.000Z","updated_at":"2020-04-03T04:47:41.000Z","dependencies_parsed_at":"2022-08-21T04:10:55.946Z","dependency_job_id":null,"html_url":"https://github.com/christophemaymard/php-code","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christophemaymard%2Fphp-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christophemaymard%2Fphp-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christophemaymard%2Fphp-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christophemaymard%2Fphp-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christophemaymard","download_url":"https://codeload.github.com/christophemaymard/php-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244147661,"owners_count":20406023,"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":["code","mangling","php"],"created_at":"2024-11-24T08:09:57.314Z","updated_at":"2025-03-18T03:22:30.118Z","avatar_url":"https://github.com/christophemaymard.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhpCode\n\n[![Latest Release](https://img.shields.io/packagist/v/cmaymard/php-code?label=Release\u0026style=plastic)](https://packagist.org/packages/cmaymard/php-code)\n[![PHP Version](https://img.shields.io/packagist/php-v/cmaymard/php-code?color=informational\u0026label=PHP\u0026style=plastic)](https://www.php.net/)\n[![PHP Extensions](https://img.shields.io/static/v1?label=PHP%20ext\u0026message=mbstring\u0026color=informational\u0026style=plastic)](https://www.php.net/)\n[![License](https://img.shields.io/github/license/christophemaymard/php-code?label=License\u0026style=plastic)](LICENSE)\n\nPhpCode provides support to mangle C++ names.\n\n## Installation\n\n```\ncomposer require cmaymard/php-code\n```\n\n## Examples\n\n### Mangle C++ names (Itanium encoding)\n\n```php\nuse PhpCode\\Language\\Cpp\\Mangling\\ItaniumMangler;\nuse PhpCode\\Language\\Cpp\\Specification\\LanguageContextFactory;\nuse PhpCode\\Language\\Cpp\\Specification\\Standard;\n\n$languageContextFactory = new LanguageContextFactory();\n$languageContext = $languageContextFactory-\u003ecreate(Standard::CPP2017);\n$mangler = new ItaniumMangler($languageContext);\n\n// '_Z4mainv'\n\\var_dump($mangler-\u003emangleFunction('main()'));\n\n// '_Z4calcisjlfdi'\n\\var_dump($mangler-\u003emangleFunction('calc(int, short, unsigned, long, float, double, signed)'));\n\n// '_ZN9Framework7Logging6Logger3logEN3Log5ETypeEbcwz'\n\\var_dump($mangler-\u003emangleFunction('Framework::Logging::Logger::log(Log::EType, bool, char, wchar_t, ...)'));\n```\n\nFor more examples, read the [Mangle C++ names](doc/cpp/mangling.md) documentation.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophemaymard%2Fphp-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristophemaymard%2Fphp-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophemaymard%2Fphp-code/lists"}