{"id":24856688,"url":"https://github.com/secondtruth/php-phar-compiler","last_synced_at":"2025-10-15T01:31:45.006Z","repository":{"id":24596684,"uuid":"28005095","full_name":"secondtruth/php-phar-compiler","owner":"secondtruth","description":"📦 A generic PHP PHAR compiler","archived":false,"fork":false,"pushed_at":"2021-03-16T15:33:29.000Z","size":27,"stargazers_count":26,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-13T01:26:30.222Z","etag":null,"topics":["composer-package","phar","phar-compiler","phar-generator","php","php-library"],"latest_commit_sha":null,"homepage":"https://www.secondtruth.de","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/secondtruth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"liberapay":"secondtruth","patreon":"secondtruth"}},"created_at":"2014-12-14T19:25:17.000Z","updated_at":"2023-06-26T23:06:29.000Z","dependencies_parsed_at":"2022-07-27T04:46:31.863Z","dependency_job_id":null,"html_url":"https://github.com/secondtruth/php-phar-compiler","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/secondtruth/php-phar-compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secondtruth%2Fphp-phar-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secondtruth%2Fphp-phar-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secondtruth%2Fphp-phar-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secondtruth%2Fphp-phar-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/secondtruth","download_url":"https://codeload.github.com/secondtruth/php-phar-compiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secondtruth%2Fphp-phar-compiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279032993,"owners_count":26089390,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["composer-package","phar","phar-compiler","phar-generator","php","php-library"],"created_at":"2025-01-31T16:45:38.682Z","updated_at":"2025-10-15T01:31:44.730Z","avatar_url":"https://github.com/secondtruth.png","language":"PHP","readme":"PHP PHAR Compiler\n=================\n\n[![Latest Stable](http://img.shields.io/packagist/v/secondtruth/phar-compiler.svg)](https://packagist.org/p/secondtruth/phar-compiler)\n[![Build Status](https://img.shields.io/travis/com/secondtruth/php-phar-compiler.svg)](https://travis-ci.com/github/secondtruth/php-phar-compiler)\n[![Scrutinizer](http://img.shields.io/scrutinizer/g/secondtruth/php-phar-compiler.svg)](https://scrutinizer-ci.com/g/secondtruth/php-phar-compiler)\n[![Coverage](http://img.shields.io/scrutinizer/coverage/g/secondtruth/php-phar-compiler.svg)](https://scrutinizer-ci.com/g/secondtruth/php-phar-compiler)\n[![License](http://img.shields.io/packagist/l/secondtruth/phar-compiler.svg)](https://packagist.org/p/secondtruth/phar-compiler)\n\nThis library provides a generic PHP PHAR compiler.\n\n\nHow to use?\n-----------\n\n```php\n$compiler = new Compiler(PROJECT_PATH);\n\n$compiler-\u003eaddIndexFile('bin/mycoolprogram.php');\n$compiler-\u003eaddDirectory('libraries');\n\n$compiler-\u003eaddFile('vendor/autoload.php');\n$compiler-\u003eaddDirectory('vendor/composer', '!*.php'); // Exclude non-PHP files\n$compiler-\u003eaddDirectory('vendor/.../Component/Console', ['Tests/*', '!*.php']);\n\n$compiler-\u003ecompile(\"$outputDir/mycoolprogram.phar\");\n```\n\n\nInstallation\n------------\n\n### Install via Composer\n\n[Install Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos) if you don't already have it present on your system.\n\nTo install the library, run the following command and you will get the latest version:\n\n    $ composer require secondtruth/phar-compiler\n\n\nRequirements\n------------\n\n* You must have at least PHP version 5.6 installed on your system.\n","funding_links":["https://liberapay.com/secondtruth","https://patreon.com/secondtruth"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecondtruth%2Fphp-phar-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsecondtruth%2Fphp-phar-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecondtruth%2Fphp-phar-compiler/lists"}