How paymentassist/creditsafe-callreport works
Project type and purpose
• This is a PHP-based client library (an SDK) for interacting with the CreditSafe CallReport SOAP API.
• Its sole purpose is to provide a typed, authenticated wrapper around remote SOAP calls to CreditSafe’s CallReport service.
File structure
• Top-level:
• config/ – contains the WSDL definitions and a PHP file (soap-client.php) for basic SOAP client configuration.
• example.php – a usage example.
• src/ – all core library code.
• Within src/:
• CreditsafeClientFactory.php – factory that reads ENV vars, configures middleware and SOAP client.
• CreditsafeMiddleware.php – middleware that injects authentication headers.
• CreditsafeClient.php – high-level façade exposing methods for each API operation.
• CreditsafeClassmap.php – maps WSDL types to PHP classes.
• Type/ – generated PHP classes (one per WSDL type) used as request/response models.
• There are no controllers, databases, UIs or microservices—just a single client library.
README for additional insights
• It’s installed via Composer.
• Requires environment variables for credentials.
• CreditsafeMiddleware handles authentication.
• example.php shows instantiation and usage.