Skip to content

Instantly share code, notes, and snippets.

@cjsewell
Created February 17, 2015 08:19
Show Gist options
  • Save cjsewell/647473cbc9aee493ebd0 to your computer and use it in GitHub Desktop.
Save cjsewell/647473cbc9aee493ebd0 to your computer and use it in GitHub Desktop.
ispconfig-soap-client Larval test
<?php
namespace App\Http\Controllers;
class WelcomeController extends Controller {
/*
|--------------------------------------------------------------------------
| Welcome Controller
|--------------------------------------------------------------------------
|
| This controller renders the "marketing page" for the application and
| is configured to only allow guests. Like most of the other sample
| controllers, you are free to modify or remove it as you desire.
|
*/
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct() {
$this->middleware('guest');
}
/**
* Show the application welcome screen to the user.
*
* @return Response
*/
public function index() {
$cp = new \GDM\ISPConfig\SoapClient('https://127.0.0.1:8080/remote/index.php', 'admin', 'mysecurepassword');
return view('welcome', ['ispconfig' => $cp]);
}
}
<html>
<head>
</head>
<body>
<div class="container">
<div class="content">
<?php
foreach ($ispconfig->getAllClients() as $client) {
echo $client['contact_name']."<br/>";
}
?>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment