update composer dependencies
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -68,13 +68,13 @@ or include the dependency in the `composer.json` file:
|
||||
|
||||
#### Demo
|
||||
|
||||
* [:iphone: Live demo!](http://is.gd/mobiletest)
|
||||
* [:iphone: Live demo!](http://demo.mobiledetect.net)
|
||||
* [Code examples](../../wiki/Code-examples)
|
||||
|
||||
#### Contribute
|
||||
|
||||
*Submit a PR*
|
||||
> Submit a pull request but before make sure you read [how to contribute](../../docs/CONTRIBUTING.md) guide.
|
||||
> Submit a pull request but before make sure you read [how to contribute](docs/CONTRIBUTING.md) guide.
|
||||
|
||||
*Donate*
|
||||
|
||||
@@ -92,7 +92,7 @@ Special thanks to the community :+1: for donations, JetBrains team for the conti
|
||||
> [Submit new module, plugin, port](../../issues/new?title=New%203rd%20party%20module&body=Name,%20Link%20and%20Description%20of%20the%20module.)
|
||||
|
||||
:point_right: Keep `Mobile_Detect.php` class in a separate `module` and do NOT include it in your script core because of the high frequency of updates.
|
||||
:point_right: When including the class into you `web application` or `module` always use `include_once '../path/to/Mobile_Detect.php` to prevent conflicts.
|
||||
:point_right: When including the class into your `web application` or `module` always use `include_once '../path/to/Mobile_Detect.php` to prevent conflicts.
|
||||
|
||||
**JavaScript**
|
||||
|
||||
|
||||
16
vendor/mobiledetect/mobiledetectlib/docker-compose.yml
vendored
Normal file
16
vendor/mobiledetect/mobiledetectlib/docker-compose.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
app:
|
||||
restart: 'on-failure'
|
||||
image: php:7
|
||||
working_dir: /app
|
||||
command: vendor/bin/phpunit -v -c tests/phpunit.xml --coverage-text --strict-coverage --stop-on-risky
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- .:/app
|
||||
|
||||
composer:
|
||||
restart: 'no'
|
||||
image: composer/composer:php7
|
||||
command: install
|
||||
volumes:
|
||||
- .:/app
|
||||
@@ -3,7 +3,8 @@
|
||||
* Mobile Detect script was designed to detect `mobile` devices. Implicitly other devices are considered to be `desktop`.
|
||||
* User-Agent and HTTP headers sniffing is a non reliable method of detecting a mobile device.
|
||||
* If the mobile browser is set on `Desktop mode`, the Mobile Detect script has no way of knowing that the device is `mobile`.
|
||||
* Some touchscreen devices (eg. Microsoft Surface) are tough to detect as mobile since they can be used in a laptop mode.
|
||||
* Some touchscreen devices (eg. Microsoft Surface) are tough to detect as mobile since they can be used in a laptop mode. See: [#32](https://github.com/serbanghita/Mobile-Detect/issues/32), [#461](https://github.com/serbanghita/Mobile-Detect/issues/461), [#667](https://github.com/serbanghita/Mobile-Detect/issues/667)
|
||||
* Some mobile devices (eg. IPadOS, Google Pixel Slate). See: [#795](https://github.com/serbanghita/Mobile-Detect/issues/795), [#788](https://github.com/serbanghita/Mobile-Detect/issues/788)
|
||||
* Detecting the device brand (eg. Apple, Samsung, HTC) is not 100% reliable.
|
||||
* We don't monitor the quality of the 3rd party tools based on Mobile Detect script.
|
||||
We cannot guarantee that they are using the class properly or if they provide the latest version.
|
||||
|
||||
Reference in New Issue
Block a user