conquer / services
Yii2 soap wsdl web services
Installs: 25 686
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 7
Forks: 6
Open Issues: 1
Type:yii2-extension
Requires
- php: >=5.6.0
- yiisoft/yii2: >=2.0.6
Requires (Dev)
- codeception/base: ^2.2.3
- codeception/verify: ~0.3.1
- guzzlehttp/guzzle: >=4.1.4 <7.0
- yiisoft/yii2-coding-standards: ~2.0.3
- yiisoft/yii2-debug: ~2.0.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.0.0
README
Description
WebService encapsulates SoapServer and provides a WSDL-based web service.
Adaptation of Yii1 Web Services
Installation
The preferred way to install this extension is through composer.
To install, either run
$ php composer.phar require conquer/services "*"
or add
"conquer/services": "*"
to the require
section of your composer.json
file.
Usage
namespace app\controllers; class SiteController extends \yii\web\Controller { public function actions() { return [ 'soap' => [ 'class' => 'conquer\services\WebServiceAction', 'classMap' => [ 'MyClass' => 'app\controllers\MyClass' ], ], ]; } /** * @param app\controllers\MyClass $myClass * @return string * @soap */ public function soapTest($myClass) { return get_class($myClass); } } class MyClass { /** * @var string * @soap */ public $name; }
License
conquer/services is released under the BSD License. See the bundled LICENSE.md
for details.