{"id":15984928,"url":"https://github.com/divineomega/soapsuds","last_synced_at":"2025-04-04T20:48:47.346Z","repository":{"id":56969725,"uuid":"73920185","full_name":"DivineOmega/Soapsuds","owner":"DivineOmega","description":"Soapsuds is a PHP library that allows developers to easily create a SOAP web service from a regular class.","archived":false,"fork":false,"pushed_at":"2018-02-06T10:10:44.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T05:28:42.305Z","etag":null,"topics":["php-library","soap","soap-web-services","web-services","wsdl","wsdl-generation"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DivineOmega.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":"2016-11-16T12:56:13.000Z","updated_at":"2019-05-21T07:37:23.000Z","dependencies_parsed_at":"2022-08-21T10:50:47.399Z","dependency_job_id":null,"html_url":"https://github.com/DivineOmega/Soapsuds","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2FSoapsuds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2FSoapsuds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2FSoapsuds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2FSoapsuds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DivineOmega","download_url":"https://codeload.github.com/DivineOmega/Soapsuds/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249617,"owners_count":20908211,"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":["php-library","soap","soap-web-services","web-services","wsdl","wsdl-generation"],"created_at":"2024-10-08T02:11:23.799Z","updated_at":"2025-04-04T20:48:47.323Z","avatar_url":"https://github.com/DivineOmega.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Soapsuds\n\nSoapsuds is a PHP library that allows developers to easily create a SOAP web service from a regular class.\n\n## Installation\n\nSimply require this package, using Composer, in the root directory of your project.\n\n```\ncomposer require divineomega/soapsuds\n```\n\nRemember to include the autoload file on any page you wish to use Soapsuds, providing you are not using a framework that handles this for you.\n\n```php\nrequire 'vendor/autoload.php`\n```\n\n## Quick start\n\nTo create a SOAP web service using Soapsuds, you need to define a class to handle your web service requests, then pass an instance of this class into Soapsuds. That's it.\n\nThese steps are described in the following sections.\n\n## Creating your web service class\n\nIn order to generate the WSDL (web service definition language) data required, all methods in your web service class must be fully commented using the [PHP DocBlock format](https://phpdoc.org/docs/latest/guides/docblocks.html). The following is an example of a properly commented class that will work just fine with Soapsuds.\n\n```php\nclass NumberAdditionWebService\n{\n    /**\n     * This method takes two float parameters, adds them together, and returns the result.\n     *\n     * @param float $number1\n     * @param float $number2\n     * @return float\n     */\n    public function addNumbers($number1, $number2)\n    {\n        return $number1 + $number2;\n    }\n}\n```\n\n## Passing your class instance to SoapSuds\n\nAfter defining your web service class, you should then create a new instance of it, and pass this object into the Soapsuds `handleRequest` method. This can all be done in a single line, as follows.\n\n```php\n\\DivineOmega\\Soapsuds\\Soapsuds::handleRequest(new NumberAdditionWebService());\n```\n\nYou should then be able to use the URL of this page as the endpoint for your new web service. Soapsuds also provides full WSDL output for your web service by appending `?wsdl` to the endpoint URL.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivineomega%2Fsoapsuds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivineomega%2Fsoapsuds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivineomega%2Fsoapsuds/lists"}