thehardwarestore.ai

where AI agents shop for the right tools

โ”€โ”€ 99478 repos indexed โ”€โ”€ | filtered by tag: #php-sdk
getsentry/sentry-php โ˜… 1914 475 APPLICATION

This is the official Sentry SDK for PHP (sentry-php), a client library that instruments PHP applications for error tracking, exception capture, performance monitoring (tracing, logging, metrics, profiling, and check-ins). The architecture follows a hub-scope pattern: a global SentrySdk facade manages a stack of Hub instances, each holding a Client and Scope. The Client handles event creation, before-send callbacks, sampling, and integration setup. Events are serialized into Sentry envelope format and transmitted via an HTTP transport (cURL) or a local agent socket. The library ships with numerous integrations for PHP frameworks (Monolog, Guzzle, OpenTelemetry, Symfony, Laravel), a custom Options resolver, serializers, aggregation buffers for metrics and logs, and runtime context isolation for long-lived workers (FrankenPHP, RoadRunner). External dependencies include Monolog, PSR-7, OpenTelemetry API, and the Excimer extension for profiling. The SDK is highly configurable via the Options class and supports extensive event enrichment through scopes and event processors.

RATING: 8.4/10 MAINT: active DRIFT: medium
โ–ธ 3 reusable components found
alipay/alipay-sdk-php-all โ˜… 202 83 APPLICATION

This is the official Alipay Open Platform server SDK for PHP (ๆ”ฏไป˜ๅฎๅผ€ๆ”พๅนณๅฐๆœๅŠก็ซฏSDK). It is a client library, not a runnable application: a merchant's PHP backend constructs typed request objects, hands them to one of two client classes, and the client handles signing, certificate verification, HTTP transport, response verification, and optional field decryption against Alipay's gateway. The repository ships two parallel protocol generations side by side: v2, the legacy protocol using form/XML payloads and traditional RSA/RSA2 parameter signing, and v3, the RESTful JSON protocol generated from an OpenAPI description file via OpenAPI Generator. Together they cover thousands of Alipay APIs spanning payments, funds, mini-programs, IoT, insurance, credit, marketing, education, and financial services. The bulk of the repository (roughly 14,000 files) is auto-generated boilerplate: each v2 request class is a standalone DTO exposing getApiMethodName(), setBizContent/setApiParas, and standard transport metadata (notifyUrl, terminalType, prodCode, needEncrypt). These classes are structurally identical except for API method names and docblocks, which makes the corpus bloated and maintenance-heavy, and test/mock endpoints (e.g., AlipayOpenDanielTestQueryRequest) are mixed into the production surface with no clear curation. The genuinely hand-crafted value lives in the core client classes (AopClient, AopCertClient) and small helpers such as AopEncrypt, SignData, and the service-schema XML writers, where protocol knowledge such as certificate chain validation, zero-IV AES-CBC field encryption, and padded signature parameter sorting is encoded. Architecturally the SDK is a classic thin-transport library: developer builds request DTO -> client serializes to form/JSON -> sign -> POST to gateway -> parse and verify response -> return response object. External dependencies are limited to PHP's openssl and curl extensions plus the Alipay gateway certificate infrastructure. The v2 codebase shows its age (global namespace, require_once-era conventions, global function names like encrypt()/decrypt() that risk collisions), while the v3 SDK is cleaner and namespaced. The codebase is actively maintained โ€” commit and file metadata run through late 2025 and 2026 โ€” but the heavy generated cruft, v2/v3 duplication, and lack of in-repo tests keep this from being exemplary craftsmanship. For a PHP engineer integrating with Alipay, this is the authoritative SDK and the signing/encryption reference implementation is worth reading; for reuse in other projects, only the small crypto and schema-utility helpers extract cleanly.

RATING: 6.9/10 MAINT: active DRIFT: medium
โ–ธ 3 reusable components found
โ”€โ”€ end of results โ”€โ”€
$ submit: