{"id":19675058,"url":"https://github.com/bit-wasp/bitcoinconsensus-php","last_synced_at":"2025-10-30T17:34:31.666Z","repository":{"id":32503285,"uuid":"36084055","full_name":"Bit-Wasp/bitcoinconsensus-php","owner":"Bit-Wasp","description":"PHP extension for bitcoinconsensus library for script validation","archived":false,"fork":false,"pushed_at":"2019-01-20T19:37:25.000Z","size":112,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-26T02:35:12.704Z","etag":null,"topics":["bitcoin","bitcoinconsensus-php","ext-bitcoinconsensus","php","php-extension"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"vishvananda/netlink","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bit-Wasp.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}},"created_at":"2015-05-22T16:52:21.000Z","updated_at":"2025-01-24T13:36:17.000Z","dependencies_parsed_at":"2022-09-05T11:21:57.827Z","dependency_job_id":null,"html_url":"https://github.com/Bit-Wasp/bitcoinconsensus-php","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Wasp%2Fbitcoinconsensus-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Wasp%2Fbitcoinconsensus-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Wasp%2Fbitcoinconsensus-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Wasp%2Fbitcoinconsensus-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bit-Wasp","download_url":"https://codeload.github.com/Bit-Wasp/bitcoinconsensus-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251420863,"owners_count":21586693,"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":["bitcoin","bitcoinconsensus-php","ext-bitcoinconsensus","php","php-extension"],"created_at":"2024-11-11T17:20:59.799Z","updated_at":"2025-10-30T17:34:31.574Z","avatar_url":"https://github.com/Bit-Wasp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitcoinconsensus-php\n\n[![Build Status](https://travis-ci.org/Bit-Wasp/bitcoinconsensus-php.svg?branch=master)](https://travis-ci.org/Bit-Wasp/bitcoinconsensus-php)\n[![codecov](https://codecov.io/gh/Bit-Wasp/bitcoinconsensus-php/branch/master/graph/badge.svg)](https://codecov.io/gh/Bit-Wasp/bitcoinconsensus-php)\n\nPHP extension for Bitcoin Script validation.\n\nIt exposes bindings to the bitcoinconsensus.h library, which exposes the VerifyScript\nwith a C compatible interface. \n\nThe library is normally build during compilation of Bitcoin Core, and is also distributed\nin signed releases of Bitcoin Core. This means you can build your own or\nget a trusted copy. \n\n## Requirements\n\nVersion v3.0.0 can be run on PHP versions \u003e 7.0.\n - In theory can be built with versions before Bitcoin Core v0.13.0.\n\nVersion v2.0.0 can run on PHP versions 5.3 - 5.6, and PHP 7.0 - 7.2, 7.3-RC\n - It must be built against Bitcoin Core v0.13.0 upwards.\n\nSee how to install a certain branch in the installation section.\n\n## Supported features\n\n\nScript verification flags:\n\n    BITCOINCONSENSUS_SCRIPT_FLAGS_VERIFY_NONE\n    BITCOINCONSENSUS_SCRIPT_FLAGS_VERIFY_P2SH\n    BITCOINCONSENSUS_SCRIPT_FLAGS_VERIFY_DERSIG\n    \n    Optional (depends on bitcoinconsensus.h build):\n    BITCOINCONSENSUS_SCRIPT_FLAGS_VERIFY_CHECKLOCKTIMEVERIFY\n    BITCOINCONSENSUS_SCRIPT_FLAGS_VERIFY_CHECKSEQUENCEVERIFY\n    BITCOINCONSENSUS_SCRIPT_FLAGS_VERIFY_WITNESS\n    BITCOINCONSENSUS_SCRIPT_FLAGS_VERIFY_NULLDUMMY\n\nError codes for bitcoinconsensus_verify_script{,with_amount}\n\n    BITCOINCONSENSUS_ERR_OK                   no error\n    BITCOINCONSENSUS_ERR_TX_INDEX             input index not set in transaction\n    BITCOINCONSENSUS_ERR_TX_SIZE_MISMATCH     (not possible)\n    BITCOINCONSENSUS_ERR_TX_DESERIALIZE       invalid transaction serialization\n\n    Optional (depends on bitcoinconsensus.h build):\n    BITCOINCONSENSUS_ERR_AMOUNT_REQUIRED      used segwit flag with old function\n    BITCOINCONSENSUS_ERR_INVALID_FLAGS        invalid script verification flags used\n\n## Compatibility\n\nScript verification constants following the naming `BITCOINCONSENSUS_VERIFY_x`\nwere removed in favor of those following upstreams naming.\n\n## To Install:\n```\n    git clone -b v3.0.0 git@github.com:bit-wasp/bitcoinconsensus-php\n    cd bitcoinconsensus-php/bitcoinconsensus\n    phpize \u0026\u0026 ./configure --with-bitcoinconsensus \u0026\u0026 make \u0026\u0026 sudo make install\n```\n\n## (Optional) - Enable the extension by default!\nAdd this line to your php.ini files to enable the extension in PHP by default.\n```\nextension=bitcoinconsensus.so\n```\n\n## Examples\n\n### Get version\n```php\necho bitcoinconsensus_version() . PHP_EOL;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbit-wasp%2Fbitcoinconsensus-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbit-wasp%2Fbitcoinconsensus-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbit-wasp%2Fbitcoinconsensus-php/lists"}