Download the PHP package webair-srl/phpwsdl2 without Composer
On this page you can find all versions of the php package webair-srl/phpwsdl2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webair-srl/phpwsdl2
More information about webair-srl/phpwsdl2
Files in webair-srl/phpwsdl2
Package phpwsdl2
Short Description PhpWSDL2 - Modern PHP WSDL/SOAP WebService Library with Multiple Protocol Support
License MIT
Homepage https://github.com/Webair-SRL/phpwsdl2
Informations about the package phpwsdl2
PhpWSDL2
PhpWSDL2 is a modern PHP library for creating WSDL/SOAP web services with support for multiple protocols including SOAP, JSON, REST, XML-RPC, and HTTP. It provides automatic service description generation, client code generation, and comprehensive documentation features.
Features
- 🚀 Multiple Protocol Support: SOAP, JSON, REST, XML-RPC, HTTP
- 📝 Automatic Documentation: HTML service descriptors and PDF generation
- 🔧 Client Code Generation: Generate clients for PHP, JavaScript, and more
- 🎯 Modern PHP: Built for PHP 8.2+ with strict typing
- 📦 Framework Independent: Works with any PHP application
- 🔍 Reflection-Based: Automatic service discovery using PHP reflection
- 🎨 Professional Output: Clean, well-formatted documentation and clients
Installation
Install PhpWSDL2 via Composer:
TCPDF 7 generates its font assets in the consuming project. Because Composer does not
execute scripts declared by dependencies, add the following script to the root
composer.json of the application that installs PhpWSDL2:
For an existing installation, initialize the fonts once with:
Quick Start
1. Create Your Service Class
2. Create Your Service Endpoint
3. Access Your Service
- Service Description:
https://example.com/service.php - WSDL:
https://example.com/service.php?WSDL - PDF Documentation:
https://example.com/service.php?PDF - REST Call:
https://example.com/service.php/add/5/3/
Client Downloads
PhpWSDL2 automatically generates client code for multiple languages and protocols:
| Client Type | URL Parameter | Description |
|---|---|---|
| PHP SOAP | ?PHPSOAPCLIENT |
PHP SOAP client class |
| PHP JSON | ?PHPJSONCLIENT |
PHP JSON client class |
| JavaScript JSON | ?JSJSONCLIENT |
JavaScript JSON client |
| JavaScript (Minified) | ?JSJSONCLIENT&min |
Minified JavaScript client |
| PHP XML-RPC | ?PHPRPCCLIENT |
PHP XML-RPC client class |
| PHP HTTP | ?PHPHTTPCLIENT |
PHP HTTP client class |
| PHP REST | ?PHPRESTCLIENT |
PHP REST client class |
Usage Examples
Using Generated PHP SOAP Client
Using Generated JavaScript Client
REST API Calls
JSON API Calls
Advanced Configuration
Custom SOAP Options
Programmatic Usage
Documentation Features
HTML Service Descriptor
PhpWSDL2 automatically generates professional HTML documentation that includes:
- Service endpoint and WSDL URLs
- Complete method listings with parameters and return types
- REST endpoint URLs for each method
- Download links for all client types
- Professional styling similar to phpWSDL
PDF Documentation
Generate PDF documentation with:
- Complete service description
- Method signatures and documentation
- Parameter details and return types
- REST endpoint information
Protocol Support
SOAP
- Full WSDL 1.1 and 2.0 support
- Automatic WSDL generation
- Complex type support via reflection
REST
- Clean URL routing (
/method/param1/param2/) - JSON response format
- GET request support
JSON
- POST parameter:
json={"call":"method","param":["arg1","arg2"]} - Structured JSON responses
- Error handling with proper HTTP status codes
XML-RPC
- Standard XML-RPC protocol support
- Automatic method registration
- Fault handling
HTTP
- Simple POST/GET parameter support
callparameter for method nameparamarray for arguments
Requirements
- PHP 8.2 or higher
- ext-soap
- ext-json
- ext-reflection
- tecnickcom/tcpdf ^7.0 (for PDF generation)
makeand outbound network access during font asset initialization
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Credits
PhpWSDL2 is developed by tQuadra and is inspired by the original phpWSDL library, modernized for PHP 8+ with additional features and improved architecture.
Support
All versions of phpwsdl2 with dependencies
ext-soap Version *
ext-json Version *
ext-reflection Version *
tecnickcom/tcpdf Version ^7.0