Skip to content

Commit 5884e8a

Browse files
committed
Merge remote-tracking branch 'origin/master' into sync-upstream
2 parents 9ae8bea + 2023fe0 commit 5884e8a

119 files changed

Lines changed: 12304 additions & 1980 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This file must exist to enable loading .env.local but is currently not used.

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.gitattributes export-ignore
2+
.gitignore export-ignore
3+
/.github export-ignore
4+
codeception.yml export-ignore
5+
.php_cs export-ignore
6+
phpunit.xml.dist export-ignore
7+
psalm.xml export-ignore
8+
/tests export-ignore

.github/contributing.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Contributing to the best PHP API for BBB
2+
3+
:+1::tada: First off, thanks for taking the time to contribute!
4+
5+
There are plenty of ways to give something back to the open source community.
6+
Following you find a couple of them for this PHP API and no matter which
7+
you choose, we appreciate every help :clap:.
8+
9+
## :bug: Reporting a bug
10+
Every application depends on people who are testing it in different environments
11+
and reporting misbehavior or options to enhance the application further. To help
12+
developers to fix your issue faster, please [open a new issue] for every bug or
13+
feature request and follow the guidelines below:
14+
15+
- A issue should be self contained, so that everyone can keep track of changes
16+
and discussions.
17+
- Provide as many information as you can.
18+
- Please be kind. Remember that most developers are working in there free time
19+
to make this code better.
20+
21+
## :page_facing_up: Contribute code
22+
Every code contribution is considered valuable, independent from there size and
23+
small changes can also be contributed directly via Github:
24+
25+
1. Browse to the desired file via
26+
[Github](https://github.com/littleredbutton/bigbluebutton-api-php).
27+
2. Click on the :pencil2: on the top right corner of the file.
28+
3. Make your changes.
29+
4. Add a meaning full commit message.
30+
5. Submit your changes.
31+
32+
If you want to contribute larger changes, we recommend the following approach
33+
which requires basic git knowledge.
34+
35+
1. Fork the repository.
36+
2. Install all dependencies with `composer install`.
37+
3. Create a local branch for your fix or feature (e.g. `fix-recording`).
38+
4. Run our tests with `vendor/bin/phpunit`.
39+
5. Commit your changes and push your created branch to your fork.
40+
6. Open a new pull request into our master branch.
41+
42+
We use a git hooks, which should mention any issues preventing the merge of your
43+
pull request.
44+
45+
## :loudspeaker: Promote
46+
You like this API and you use a blog, Twitter, Facebook or any other social
47+
network? It would be great if you could write a small post about this fork.
48+
49+
50+
[open a new issue]: https://github.com/littleredbutton/bigbluebutton-api-php/issues

.github/workflows/ci.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
PHP_Lowest:
9+
name: PHP wth lowest dependencies
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
php-versions: ['7.2']
15+
experimental: [false]
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Setup PHP, with composer and extensions
21+
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
22+
with:
23+
php-version: ${{ matrix.php-versions }}
24+
extensions: bcmath, ctype, fileinfo, json, mbstring, dom, ldap, pdo, tokenizer, xml, mysql, sqlite
25+
coverage: xdebug
26+
- name: Downgrade phpunit for php7.2
27+
run: composer update phpunit/phpunit -W
28+
- name: Update to lowest php dependencies
29+
run: composer update --prefer-lowest
30+
- name: Install php dependencies
31+
run: composer install --dev --no-interaction
32+
- name: Execute tests without coverage
33+
run: vendor/bin/phpunit --testsuite="BigBlueButton unit test suite,BigBlueButton integration test suite"
34+
35+
PHP:
36+
name: PHP ${{ matrix.php-versions }}
37+
runs-on: ubuntu-latest
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
php-versions: ['7.2','7.3','7.4','8.0']
42+
experimental: [false]
43+
include:
44+
- php-versions: '8.1'
45+
experimental: true
46+
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v2
50+
- name: Setup PHP, with composer and extensions
51+
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
52+
with:
53+
php-version: ${{ matrix.php-versions }}
54+
extensions: bcmath, ctype, fileinfo, json, mbstring, dom, ldap, pdo, tokenizer, xml, mysql, sqlite
55+
coverage: xdebug
56+
- name: Downgrade phpunit for php7.2
57+
if: ${{ matrix.php-versions == '7.2' }}
58+
run: composer update phpunit/phpunit -W
59+
- name: Install php dependencies
60+
run: composer install --dev --no-interaction
61+
continue-on-error: ${{ matrix.experimental }}
62+
- name: Execute code style check via php-cs-fixer
63+
run: vendor/bin/php-cs-fixer fix --dry-run
64+
continue-on-error: ${{ matrix.experimental }}
65+
- name: Execute tests with coverage
66+
if: ${{ !matrix.experimental }}
67+
run: |
68+
mkdir -p build/logs
69+
vendor/bin/phpunit --coverage-clover=build/logs/coverage.xml --testsuite="BigBlueButton unit test suite,BigBlueButton integration test suite"
70+
- name: Execute tests without coverage
71+
if: ${{ matrix.experimental }}
72+
run: vendor/bin/phpunit --testsuite="BigBlueButton test suite"
73+
continue-on-error: true
74+
- name: Coveralls
75+
env:
76+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
if: ${{ matrix.php-versions == '7.2' && env.COVERALLS_REPO_TOKEN != null }}
78+
run: vendor/bin/php-coveralls --coverage_clover=build/logs/coverage.xml -v

.gitignore

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
composer.phar
22
/vendor/
3-
composer.lock
43
.DS_Store
54

65
## Directory-based project format:
@@ -9,3 +8,14 @@ composer.lock
98

109
# PHP CS Fixer cache file
1110
.php_cs.cache
11+
cghooks.lock
12+
13+
# PHPUnit reports (for convenience when working locally)
14+
reports
15+
16+
# PHPUnit result cache
17+
.phpunit.result.cache
18+
19+
# Local environment variables
20+
/.env.local
21+
/.env.*.local

.php_cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $finder = \PhpCsFixer\Finder::create()
1010

1111
return PhpCsFixer\Config::create()
1212
->setUsingCache(false)
13-
->setRules(array(
13+
->setRules([
1414
'psr4' => true,
1515
'encoding' => true,
1616
'full_opening_tag' => true,
@@ -49,5 +49,6 @@ return PhpCsFixer\Config::create()
4949
'align_double_arrow' => true,
5050
'align_equals' => true,
5151
]
52-
))
52+
])
53+
->setRiskyAllowed(true)
5354
->setFinder($finder);

.travis.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)