{"id":25500217,"url":"https://github.com/serial/php-browsercheck","last_synced_at":"2025-06-28T15:33:35.727Z","repository":{"id":244445911,"uuid":"815136054","full_name":"serial/php-browsercheck","owner":"serial","description":"Show some basic browser information","archived":false,"fork":false,"pushed_at":"2024-06-17T15:22:50.000Z","size":8523,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-18T09:44:00.176Z","etag":null,"topics":["browser","support","useragent"],"latest_commit_sha":null,"homepage":"https://msn-systems.de/browsercheck/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serial.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-14T12:33:35.000Z","updated_at":"2024-06-17T15:22:53.000Z","dependencies_parsed_at":"2024-06-14T19:28:58.624Z","dependency_job_id":"20ffe3b0-0b7a-4257-85ad-981d80cac68c","html_url":"https://github.com/serial/php-browsercheck","commit_stats":null,"previous_names":["serial/php-browsercheck"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serial%2Fphp-browsercheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serial%2Fphp-browsercheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serial%2Fphp-browsercheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serial%2Fphp-browsercheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serial","download_url":"https://codeload.github.com/serial/php-browsercheck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239593064,"owners_count":19664855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","support","useragent"],"created_at":"2025-02-19T03:37:01.035Z","updated_at":"2025-02-19T03:37:01.580Z","avatar_url":"https://github.com/serial.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\r\n## Browsercheck\r\nA simple tool to check the client browser version and operating system with some more details.\r\nThe Browser User-Agent is detected and displayed in a nice way with some extra information see [features](#features).\r\nThe user can take a screenshot of the information or send it directly via E-Mail (PHPMailer or PHP mail function) to a given address.\r\n\r\n# Requirements\r\n* Webserver or localhost with PHP 7.4 or higher\r\n* Mailserver so send vie SMTP (Optional)\r\n* Composer to install dependencies (required)\r\n\r\n# Screenshot\r\nDesktop and Mobile view\r\n![Screenshot](https://github.com/serial/php-browsercheck/blob/master/screenshot.png)  \r\n![Screenshot Mobile](https://github.com/serial/php-browsercheck/blob/master/screenshot-mobile.png)\r\n\r\n# Installation\r\n1. Clone this repository\r\n2. Run `composer install` to install dependencies\r\n3. Copy `config.php.sample` to `config.php` and edit the settings\r\n4. Choose if you want to use the PHPMailer or the integrated PHP mail function\r\n5. Open the index.php file in your browser\r\n\r\n# Alternative installation\r\n1. Upload the files to your webserver\r\n2. Install composer on your server and run `composer install --no-dev --optimize-autoloader` inside the project folder\r\n3. Copy `config.php.sample` to `config.php` and set the settings\r\n4. Open the index.php file in your browser\r\n\r\n# Configuration / troubleshooting\r\n* Settings need to be set in the `config.php` file\r\n* A static testmail script is included to test a smtp connection via PHPMailer\r\n* If you want to use SMTP with Google, Apple, Microsoft or Azure, please refer to the documentation of PHPMailer for further modules\r\n* In production make sure to set the `DEBUG` setting to `false` to hide error messages, otherwise the ajax requests message will not show in the frontend\r\n\r\n# Features\r\n* Detects\r\n  * the browser and engine version\r\n  * the operating system\r\n  * the user's IP address\r\n  * the user's browser resolution\r\n  * the user's device type\r\n  * the user's browser preferred language\r\n* Screenshot / Capture\r\n  * A button to take a screenshot / capture the information in a canvas\r\n  * The canvas is shown in a nice fancybox\r\n  * The fancybox provides a download button to save the image\r\n* Send E-Mail\r\n  * The data can be sent directly to an E-Mail address\r\n  * You can choose to use a SMTP server or the PHP mail function\r\n    * The SMTP server settings can be configured in the config.php file\r\n  * Shows a message depending on the success or failure of the mail function\r\n  * Send email button is disabled after sending the mail\r\n  * Sendmail function is handled via ajax request\r\n  * Styled messages for success and error responses\r\n* Shows a unique token which is also sent via mail and on the screenshot\r\n* Optimized for mobile devices\r\n\r\n# Dev Notes\r\n- For updating the browser and device detection, you can use the composer package manager.\r\n  - You can easily update the WhichBrowser library by running the command `composer update whichbrowser/parser` in the project folder.\r\n- Styling is done with LESS and compiled to CSS\r\n\r\n# References\r\nThis project uses the following libraries\r\n\r\n* **PHP**\r\n  * [WhichBrowser](https://github.com/WhichBrowser/Parser-PHP) (To interpret the browsers User-Agent string and identify latest browsers and devices)\r\n  * [PHPMailer](https://github.com/PHPMailer/PHPMailer) (Optional)\r\n* **JS**\r\n  * jQuery (3.5.1)\r\n  * html2canvas (1.4.1)\r\n  * FancyBox (3.5.7)\r\n* **CSS / Fonts**\r\n  * Fonts\r\n    * Open Sans (locally integrated Google Font)\r\n    * Roboto Mono (locally integrated Google Font)\r\n  * Icon Library\r\n    * Font Awesome Pro (6.5.2)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserial%2Fphp-browsercheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserial%2Fphp-browsercheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserial%2Fphp-browsercheck/lists"}