{"id":19297289,"url":"https://github.com/vjardin/bcgen","last_synced_at":"2026-01-30T11:39:19.352Z","repository":{"id":210067349,"uuid":"133382004","full_name":"vjardin/bcgen","owner":"vjardin","description":"A bytecode generator (compiler) for PHP7","archived":false,"fork":false,"pushed_at":"2018-09-01T20:22:22.000Z","size":303,"stargazers_count":57,"open_issues_count":11,"forks_count":19,"subscribers_count":11,"default_branch":"PHP-7.2","last_synced_at":"2025-04-22T09:41:12.871Z","etag":null,"topics":["bcompiler","bytecode","php7"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"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/vjardin.png","metadata":{"files":{"readme":"README","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-14T15:22:43.000Z","updated_at":"2024-12-22T18:01:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"c67c4a8c-87e9-4c50-a321-57ef3fefbf22","html_url":"https://github.com/vjardin/bcgen","commit_stats":null,"previous_names":["vjardin/bcgen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vjardin/bcgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjardin%2Fbcgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjardin%2Fbcgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjardin%2Fbcgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjardin%2Fbcgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vjardin","download_url":"https://codeload.github.com/vjardin/bcgen/tar.gz/refs/heads/PHP-7.2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjardin%2Fbcgen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28911846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T08:15:08.179Z","status":"ssl_error","status_checked_at":"2026-01-30T08:14:31.507Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bcompiler","bytecode","php7"],"created_at":"2024-11-09T23:01:50.534Z","updated_at":"2026-01-30T11:39:19.334Z","avatar_url":"https://github.com/vjardin.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"BCgen\n=====\n\nBCgen is derived from the Zend OPcache source code.\n\nIt provides a single function to compile a PHP script into binary bytecode file.\nBCgen is similiar to bcompiler, but not a direct replacement.\n\nCompatibility\n-------------\n\nOnly PHP-7.2 is supported for now. There are currently no plans to support earlier PHP versions as well.\nSupporting different PHP versions with their different internal data structures is really a hassle.\n\nSo if you distribute your BCGen compiled PHP files to protect your code, make sure that the user uses the correct PHP version that matches the BCgen version.\nIn times of docker et al it should not be a problem to achieve this.\n\nQuick Install\n-------------\n\n- Compile\n\n $PHP_DIR/bin/phpize\n ./configure \\\n      --with-php-config=$PHP_DIR/bin/php-config\n make\n\n- Install\n\n make install # this will copy bcgen.so into PHP extension directory\n\n- Edit php.ini\n\n zend_extension=/...full path.../bcgen.so\n\nNOTE: In case you are going to use BCgen together with Xdebug or Zend Debugger,\nbe sure that the debugger is loaded after BCgen. \"php -v\" must show the debugger\nafter BCgen.\n\n- Restart PHP\n\nConfiguration Directives\n------------------------\n\nbcgen.enable (default \"1\")\n\tBCgen On/Off switch. When set to Off, bytecode files cannot be read\n\nbcgen.save_comments (default \"1\")\n\tIf disabled, all PHPDoc comments are dropped from the code to reduce the\n\tsize of the optimized code. Disabling \"Doc Comments\" may break some\n\texisting applications and frameworks (e.g. Doctrine, ZF2, PHPUnit)\n\nbcgen.optimization_level (default \"0xffffffff\")\n\tA bitmask, where each bit enables or disables the appropriate BCgen\n\tpasses\n\nbcgen.dups_fix (default \"0\")\n\tEnable this hack as a workaround for \"Cannot redeclare class\" errors.\n\nbcgen.file_consistency_checks (default \"0\")\n\tCheck the file checksum on each request.\n\tThe default value of \"0\" means that the check is disabled.\n\tBecause calculating the checksum impairs performance, this directive should\n\tbe enabled only as part of a debugging process.\n\nbcgen.error_log\n\tBCgen error_log file name. Empty string assumes \"stderr\".\n\nbcgen.log_verbosity_level (default \"1\")\n\tAll BCgen errors go to the Web server log.\n\tBy default, only fatal errors (level 0) or errors (level 1) are logged.\n\tYou can also enable warnings (level 2), info messages (level 3) or\n\tdebug messages (level 4).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvjardin%2Fbcgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvjardin%2Fbcgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvjardin%2Fbcgen/lists"}