929c6de5f2
- Update Mobile_Detect to version 2.8.30 - Update class maps
2.1 KiB
2.1 KiB
Reporting issues
- Specify the User-agent by visiting http://demo.mobiledetect.net.
- Specify the expected behaviour.
Developing
- Fork Mobile Detect repository. See "How to fork" example.
git clone https://github.com/[yourname]/Mobile-Detect.git
git add remote serbanghita https://github.com/serbanghita/Mobile-Detect.git
git remote -v
- You should see:origin git@github.com:serbanghita/Mobile-Detect.git serbanghita https://github.com/serbanghita/Mobile-Detect.git
git checkout -b devel origin/devel
composer install
- Start working on your changes.
- If you add new methods or make structural changes to the
Mobile_Detect.php
class you need to add unit tests! - If you add new regexes make sure you commit the User-Agents in
tests/providers/vendors
- If you add new methods or make structural changes to the
- Run tests
vendor/bin/phpunit -v -c tests/phpunit.xml --coverage-text --strict-coverage --stop-on-risky
git status
orgit diff
- inspect your changes 1git stage .
git commit -m "[your commit message here]
git push origin devel
- Go to your repo on GitHub and "Submit the PR"
New module, plugin, plugin or port
Submit new module, plugin, port including the following information:
- Module name
- Description
- Link
- Author
Or you can submit a PR against README.md
.
Website updates
- Our official website is hosted at http://mobiledetect.net.
- The files are found on the
gh-pages
branch. git checkout gh-pages
npm install -g browser-sync
browser-sync start --s . --f . --port 3000 --reload-debounce 1500 --no-ui
- Go to
http://localhost:3000
and make changes. - Commit, push and submit the PR against
serbanghita:gh-pages
.