File manager - Edit - /home/opticamezl/www/newok/mobiledetect.zip
Back
PK � �\���� mobiledetectlib/CHANGELOG.mdnu &1i� # Change log # 4.8.09 - [x] `sha1` is now the default fn for encoding cache keys. Using `base64` [was causing problems](https://github.com/serbanghita/Mobile-Detect/issues/974#issuecomment-2531597903) in Laravel. # 4.8.08 - [x] fix for missing psr/cache prod dependency - [bug] latest 4.8.07 cause site error Call to a member function get() on false #974 - [x] fix for Docker build not installing dev dependencies # 4.8.07 (broken in composer, please skip) - [x] fix cache and generate short cache key (#971) - [x] Added configuration cacheKeyFn which allows for using a custom cache key creation fn. - [x] Use Client Hints Sec-CH-UA-Mobile header to detect mobile (#962) - [x] added Huawei (phone, OS - HarmonyOS, browser) detection (#952) - [x] Bugfix: Allow Injection of Any PSR Cache Interface (#966) - [x] PHP 8.4 - implicit nulls are deprecated (#960) # 4.8.03 - [x] added optional `$config` to MobileDetect constructor. - [x] added `autoInitOfHttpHeaders` configuration which is by default `true`. This enabled the old behavior from `3.x` and `2.x` that allows automatic detection of HTTP headers and User Agent from $_SERVER. - [x] refactored internal CloudFront related methods and the way `setHttpHeaders` work. It no longer falls back on `$_SERVER`. The method still calls `setUserAgent` in case `HTTP_USER_AGENT` and friends are present. - [x] added `maximumUserAgentLength` to the `$config`, by default the limit is `500`. # 4.8.02 - [x] new user agents - [x] Samsung Galaxy Tab S6 Lite #919 - [x] Samsung Galaxy Tab S8 series #912 # 4.8.01 - [x] PHP 8.x only. - [x] PSR-16 cache support. - [x] Constructor accepts `CacheFactory` class where you can inject your own PSR-6 Cache interfaces. - [x] You need to explicitly `setUserAgent("...")` or `setUserAgentHeaders([...])` otherwise an exception is being thrown. - [x] `scripts/` folder no longer included in the git tag release archive. - [x] added performance tests - [x] regexes can be arrays of strings or strings # 2023 Launched 4.8.xx which contains PHP 8.x support, refactorings and external Cache support. ## 2022 In December 2022 we released the version for PHP7. Mobile Detect was split into two dev branches: `2.8.x` which will support PHP5, but is deprecated and `3.74.x` which supports PHP >= 7.3 ## 2013 In August 2013 the library has 1800+ stargazers and support for: composer, PHPUnit tests, PSR standards and a new webpage http://mobiledetect.net # 2012 Throughout 2012 the script has been updated constantly, and we have received tons of feedback and requests. In July 2012 we moved the repository from Google Code to GitHub in order to quickly accommodate the frequent updates and to involve more people. ## 2011 In December 2011 it received a major update from the first version, an important number of issues were fixed, then 2.0 was launched. The new version marks a new mindset and also featuring tablet detection. ## 2009 The first version of the script was developed in 2009, and it was hosted at https://code.google.com/p/php-mobile-detect/, it was a small project with around 30 stars. (Original blog post by Victor: http://victorstanciu.ro/detectarea-platformelor-mobile-in-php/) PK � �\�qDo o mobiledetectlib/phpbench.jsonnu &1i� { "$schema":"./vendor/phpbench/phpbench/phpbench.schema.json", "runner.bootstrap": "vendor/autoload.php" } PK � �\؛V�j j mobiledetectlib/composer.jsonnu &1i� { "name": "mobiledetect\/mobiledetectlib", "type": "library", "description": "Mobile_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.", "keywords": [ "mobile", "mobile detect", "mobile detector", "php mobile detect", "detect mobile devices" ], "homepage": "https:\/\/github.com\/serbanghita\/Mobile-Detect", "license": "MIT", "authors": [ { "name": "Serban Ghita", "email": "serbanghita@gmail.com", "homepage": "http:\/\/mobiledetect.net", "role": "Developer" } ], "require": { "php": ">=8.0", "psr\/simple-cache": "^3", "psr\/cache": "^3.0" }, "require-dev": { "friendsofphp\/php-cs-fixer": "^v3.65.0", "phpunit\/phpunit": "^9.6.18", "squizlabs\/php_codesniffer": "^3.11.1", "phpbench\/phpbench": "^1.2", "phpstan\/phpstan": "^1.12.x-dev" }, "autoload": { "psr-4": { "RegularLabs\\Scoped\\Detection\\": "src\/" } }, "autoload-dev": { "psr-4": { "RegularLabs\\Scoped\\DetectionTests\\": "tests\/" } }, "archive": { "exclude": [ "scripts" ] } }PK � �\ȓ�o $ mobiledetectlib/KNOWN_LIMITATIONS.mdnu &1i� **Known limitations** * 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 indicator (eg. a group of strings) that would allow it to detect that the device is `mobile`. * Ipad 2019 is being recognized as a desktop because of Safari's default `Request Desktop Website` setting. See details and possible workaround [#820](https://github.com/serbanghita/Mobile-Detect/issues/820) * Also see [#886](https://github.com/serbanghita/Mobile-Detect/issues/886#issuecomment-1047187763) * 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. * Version `2.x` is made to be PHP 5.3 compatible because of the backward compatibility changes of PHP. * There are hundreds of devices launched every month, we cannot keep a 100% up-to-date detection rate. * The script cannot detect the viewport, pixel density or resolution of the screen since it's running server-side. PK � �\�1� mobiledetectlib/CNAMEnu &1i� mobiledetect.netPK � �\�t�� mobiledetectlib/README.mdnu &1i�  MobileDetect, PHP mobile detection class ========================================      Mobile Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment. ## Before you install There are three versions of MobileDetect. `4.8.x` is the main version that is ALWAYS going to be updated first. | Version | Tests | Namespace | Code | PHP Version | Status | |---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|------------------------------------------------------------------|-------------|----------------------| | 2.8.x | [](https://github.com/serbanghita/Mobile-Detect/actions/workflows/test.yml) | `\Mobile_Detect` | [2.8](https://github.com/serbanghita/Mobile-Detect/tree/2.8.x) | \>=5.0,<7.0 | Deprecated | | 3.74.x | [](https://github.com/serbanghita/Mobile-Detect/actions/workflows/test.yml) | `Detection\MobileDetect` | [3.74](https://github.com/serbanghita/Mobile-Detect/tree/3.74.x) | \>=7.4,<8.0 | LTS | | 4.8.x | [](https://github.com/serbanghita/Mobile-Detect/actions/workflows/test.yml) | `Detection\MobileDetect` | [4.8](https://github.com/serbanghita/Mobile-Detect/tree/4.8.x) | \>=8.0 | Current, **Recommended** | ## 🤝 Supporting If you are using Mobile Detect open-source package in your production apps, in presentation demos, hobby projects, school projects or so, you can sponsor my work by [donating a small amount :+1:](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mobiledetectlib%40gmail%2ecom&lc=US&item_name=Mobile%20Detect¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted). I'm currently paying for hosting and spend a lot of my family time to maintain the project and planning the future releases. I would highly appreciate any money donations. Special thanks to: * the community :+1: for donations, submitting patches and issues * the JetBrains team for the open-source licenses for [PHPStorm IDE](https://www.jetbrains.com/phpstorm/) * [Gitbook](https://www.gitbook.com/) team for the open-source license for their technical documentation tool. ## 📃 Documentation The entire documentation is available on Gitbook: [https://docs.mobiledetect.net](https://docs.mobiledetect.net) ## 👾 Demo Point your device to: [https://demo.mobiledetect.net](https://demo.mobiledetect.net) ## 🐛 Testing ``` bash vendor/bin/phpunit -v -c tests/phpunit.xml --coverage-html .coverage ``` ## 🤝 Contributing Please see the [Contribute guide](https://mobile-detect.gitbook.io/home/contribute) for details. ## 🔒 Security If you discover any security related issues, please email serbanghita@gmail.com instead of using the issue tracker. ## 🎉 Credits - [Serban Ghita](https://github.com/serbanghita) - [All Contributors](https://mobile-detect.gitbook.io/home/credits) PK � �\���m m 7 mobiledetectlib/src/Exception/MobileDetectException.phpnu &1i� <?php namespace RegularLabs\Scoped\Detection\Exception; class MobileDetectException extends \Exception { } PK � �\M��|� � '