{"id":37235360,"url":"https://github.com/katalystsol/php-soap-client","last_synced_at":"2026-01-16T04:47:11.871Z","repository":{"id":57004776,"uuid":"161526524","full_name":"katalystsol/php-soap-client","owner":"katalystsol","description":"A generic SOAP client","archived":false,"fork":false,"pushed_at":"2018-12-13T22:55:06.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-08T23:33:50.591Z","etag":null,"topics":["php","soap-api","soap-client"],"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/katalystsol.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":"2018-12-12T18:06:23.000Z","updated_at":"2018-12-13T22:55:07.000Z","dependencies_parsed_at":"2022-08-21T13:50:49.288Z","dependency_job_id":null,"html_url":"https://github.com/katalystsol/php-soap-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/katalystsol/php-soap-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katalystsol%2Fphp-soap-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katalystsol%2Fphp-soap-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katalystsol%2Fphp-soap-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katalystsol%2Fphp-soap-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/katalystsol","download_url":"https://codeload.github.com/katalystsol/php-soap-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katalystsol%2Fphp-soap-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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":["php","soap-api","soap-client"],"created_at":"2026-01-15T04:01:41.777Z","updated_at":"2026-01-15T04:01:42.312Z","avatar_url":"https://github.com/katalystsol.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-soap-client\nA generic SOAP client\n\nThis was originally written as a SOAP Client in Laravel to access the HomeAway SOAP API. This is a work-in-progress to \nmigrate that code to be a simple-to-use, generic SOAP client.\n\n## Goals\n\n* Create a simple approach to interacting with a SOAP API\n* Create a Class for each API endpoint method that only requires minimal data parameters for required and optional parameters.\n* Have ability to support complex types / objects.\n* Adhere as closely as possible to the Single Responsibility principle.\n    - Each SOAP API endpoint/method will be its own Class, which configures the required parameters, optional parameters \n    and/or complex types. It should only change if the SOAP API changes.\n\nThis package is compliant with [PSR-1], [PSR-2] and [PSR-4]. If you notice compliance oversights,\nplease send a patch via pull request.\n\n[PSR-1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md\n[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md\n[PSR-4]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md\n\n## Install\n\nVia Composer\n``` bash\n$ composer require katalystsol/php-soap-client\n```\n\n## Requirements\nThe following versions of PHP are supported by this version.\n\n* PHP 5.6\n* PHP 7.0\n* PHP 7.1\n* PHP 7.2\n* PHP 7.3\n\nIt requires the following PHP extensions:\n* JSON\n* SimpleXML\n* SOAP\n\n## Documentation\n\nConstructive feedback is always welcome...\n\n### Example Usage\nTo use the class, you would:\n\n1. Instantiate the client\n2. Set up the parameters to pass to the method\n3. Call the method to return the response\n\n```php\n$wdsl = 'https://secure.instantsoftwareonline.com/StayUSA/ChannelPartners/wsWeblinkPlusAPI.asmx?WSDL';\n$soapClientOptions = [\n    'trace' =\u003e true,\n];\n$client = new SoapClientLogger(new \\SoapClient($wdsl, $soapClientOptions));\n\n$params = [\n    'strUserId' =\u003e 'testUserId',\n    'strPassword' =\u003e 'testPassword',\n    'strCOID' =\u003e '1234',\n];\n\n$response = (new Consumer($client))-\u003egetBookingPolicies($params);\n```\n\n\n### Example SOAP Method class\n\n```php\nuse Katalystsol\\PhpSoapClient\\ConsumerMethod;\n\nclass GetBookingPolicies extends ConsumerMethod\n{\n    protected $requiredParameters = [\n        'strUserId',\n        'strPassword',\n        'strCOID',\n    ];\n\n    protected $optionalParameters = [\n        'strProperty',\n    ];\n}\n\n```\n\n### Example Complex Type\n\nThis would be a credit card class. It would also reference a separate complex type class \"ClsAddress\".\n\n```php\nuse Katalystsol\\PhpSoapClient\\ComplexType;\n\nclass ClsCreditCard extends ComplexType\n{\n    protected function setPropertyKeys()\n    {\n        $this-\u003epropertyKeys = [\n            'strToken',\n            'strCCType',\n            'intExpMonth',\n            'intExpYear',\n            'strName',\n            'objBillingAddress',\n            'strEmail',\n        ];\n    }\n\n    protected function setComplexTypes()\n    {\n        $this-\u003ecomplexTypes = [\n            'objBillingAddress' =\u003e ClsAddress::class,\n        ];\n    }\n\n    protected function setComplexTypeClassName()\n    {\n        $this-\u003ecomplexTypeClassName = get_class();\n    }\n}\n```\n\n- See the tests for more examples.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatalystsol%2Fphp-soap-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatalystsol%2Fphp-soap-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatalystsol%2Fphp-soap-client/lists"}