{"id":37002050,"url":"https://github.com/php-internal/promise","last_synced_at":"2026-01-14T00:27:23.988Z","repository":{"id":311807488,"uuid":"1044952900","full_name":"php-internal/promise","owner":"php-internal","description":"Improved React Promise package","archived":false,"fork":false,"pushed_at":"2025-10-24T08:58:43.000Z","size":924,"stargazers_count":35,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"3.x","last_synced_at":"2025-10-24T10:26:51.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/php-internal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2025-08-26T12:49:23.000Z","updated_at":"2025-10-24T08:50:13.000Z","dependencies_parsed_at":"2025-08-27T01:09:16.942Z","dependency_job_id":"b65b3f05-758c-4dbf-a672-7214164fe222","html_url":"https://github.com/php-internal/promise","commit_stats":null,"previous_names":["php-internal/promise"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/php-internal/promise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-internal%2Fpromise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-internal%2Fpromise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-internal%2Fpromise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-internal%2Fpromise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-internal","download_url":"https://codeload.github.com/php-internal/promise/tar.gz/refs/heads/3.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-internal%2Fpromise/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-01-14T00:27:23.362Z","updated_at":"2026-01-14T00:27:23.969Z","avatar_url":"https://github.com/php-internal.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Promise\n\nA lightweight implementation of [CommonJS Promises/A][CommonJS Promises/A] for PHP.\n\n\u003e [!NOTE]\n\u003e This is a fork of [reactphp/promise][reactphp/promise].\n\u003e\n\u003e Improvements over original reactphp/promise:\n\u003e \n\u003e - PHP 8.1+ compatibility\n\u003e - `declare(strict_types=1);` in all PHP files\n\u003e - `@yield` annotation in the PromiseInterface\n\u003e\n\u003e Version 3.x specific:\n\u003e - Replaces `react/promise` v3 in Composer\n\u003e - Rejection handler is reusable now. `error_log()` is still used by default.\n\u003e - Removed `exit(255)` from RejectionPromise.\n\u003e\n\u003e Version 2.x specific:\n\u003e - Replaces `react/promise` v2 in Composer\n\u003e - Enhanced type annotations\n\n## Install\n\n```bash\ncomposer require internal/promise\n```\n\n[![PHP](https://img.shields.io/packagist/php-v/internal/promise.svg?style=flat-square\u0026logo=php)](https://packagist.org/packages/internal/promise)\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/internal/promise.svg?style=flat-square\u0026logo=packagist)](https://packagist.org/packages/internal/promise)\n[![License](https://img.shields.io/packagist/l/internal/promise.svg?style=flat-square)](LICENSE.md)\n[![Total Downloads](https://img.shields.io/packagist/dt/internal/promise.svg?style=flat-square)](https://packagist.org/packages/buggregator/trap)\n\n## Tests\n\nTo run the test suite, go to the project root and run:\n\n```bash\ncomposer test\n```\n\nOn top of this, we use PHPStan on max level to ensure type safety across the project:\n\n```bash\ncomposer stan\n```\n\n## Credits\n\nThis fork is based on [reactphp/promise][reactphp/promise], which is a port of [when.js][when.js]\nby [Brian Cavalier][Brian Cavalier].\n\nAlso, large parts of the [documentation][documentation] have been ported from the when.js\n[Wiki][Wiki] and the\n[API docs][API docs].\n\n[documentation]: documentation.md\n[CommonJS Promises/A]: http://wiki.commonjs.org/wiki/Promises/A\n[CI status]: https://img.shields.io/github/actions/workflow/status/internal/promise/ci.yml?branch=2.x\n[CI status link]: https://github.com/internal/promise/actions\n[installs]: https://img.shields.io/packagist/dt/internal/promise?color=blue\u0026label=installs%20on%20Packagist\n[packagist link]: https://packagist.org/packages/internal/promise\n[Composer]: https://getcomposer.org\n[when.js]: https://github.com/cujojs/when\n[Brian Cavalier]: https://github.com/briancavalier\n[reactphp/promise]: https://github.com/reactphp/promise\n[Wiki]: https://github.com/cujojs/when/wiki\n[API docs]: https://github.com/cujojs/when/blob/master/docs/api.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-internal%2Fpromise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-internal%2Fpromise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-internal%2Fpromise/lists"}