You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -188,6 +189,225 @@ if ($response->getReturnCode() == 'SUCCESS') {
188
189
```
189
190
190
191
192
+
## Full usage sample
193
+
### Introduction
194
+
195
+
You have been using BigBlueButton for years or you are still discovering it, and you have PHP within your solutions
196
+
sphere and considering managing your BigBlueButton meetings with PHP, we are writing this tutorial right for you
197
+
and your team.
198
+
199
+
BigBlueButton officially offers a PHP library to use for its API. In this tutorial you will learn how to use this PHP
200
+
library to create a meeting then join it.
201
+
202
+
### Pre-requisites
203
+
204
+
Before we can show you how to use the library, it is important to have the following point done:
205
+
- BigBlueButton server installed. Easy enough, it takes 15 minutes or less. Just follow this link https://bigbluebutton.org/2018/03/28/install-bigbluebutton-in-15-minutes/ if not already done.
206
+
- PHP 7.0 or higher. Whether the library is compatible with previous version of PHP 5.4, 5.5 and 5.6, we highly discourage you to use it on those versions to avoid any unwanted behavior.
207
+
- curl, mbstring, simple-xml PHP extensions. They are active by default in most PHP distributions.
208
+
- A running HTTP server, Apache2 or nginx.
209
+
- Composer PHP dependency manager pre-installed.
210
+
211
+
### Installation and configuration
212
+
213
+
First, we need to create our composer project.
214
+
215
+
```
216
+
composer init –name 'bigbluebutton-join-form'
217
+
```
218
+
219
+
Then we need to add the library available on packagist.
Once we have defined the required dependency, we need to install it using the command below.
226
+
227
+
```
228
+
composer install -o --no-dev
229
+
```
230
+
231
+
Adding `--no-dev` options, means that we omit development packages that are mainly used to unit test the library.
232
+
233
+
The library package has now been downloaded to `vendor` directory in your project root. A configuration final step
234
+
is required for the library.
235
+
236
+
As you know, the call BigBlueButton API you need the server URL and the shred secret. You can get them from you
237
+
BigBlueButton server with 'bbb-conf' http://docs.bigbluebutton.org/install/bbb-conf.html#--secret
238
+
239
+
Once you have them, create two environment variables. For Apache2 you can use the `SetEnv` directive or the
240
+
`fastcgi_param` for nginx. For Apache2, we advise putting the variables in the `/etc/apache2/envvars` to keep themaway from your source code repository.
Let’s go ahead and create our HTML form to join BigBlueButton meeting. The contact form will contain the following fields: username, a combo-box for the meeting name, a second combo-box for the user role and a checkbox for the client type.
0 commit comments