PHP Browser Detection
Version 3 adds support for is_tablet(), is_desktop(), and is_browser() as well as numerous bug fixes and code improvements. As of version 3.1.2 automatic updates of browscap.ini are disabeld until we can deal with…
Betrachten Sie eine Alternative
PHP Browser Detection shows warning signs in 2026 — compare the alternatives below before installing. It runs on 500+ sites, is rated 4.1/5 and was last updated 11 years ago, and scores 35/100 on our health check.
- Kleine Benutzerbasis (500+ aktive Installationen)
- Kein Update in 11 Jahren
- Only tested up to WordPress 4.3 (latest is 7.1)
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where PHP Browser Detection stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| browser | >100 |
| browser detection | >100 |
| internet explorer | >100 |
| iphone | >100 |
| php | >100 |
Versionsübernahme
Anteil aktiver Sites pro Release.
Bewertungsaufschlüsselung
★★★★★★★★★★ 4.1 from 16 reviews
About PHP Browser Detection
From the official readme · v3.1.8Beschreibung
Version 3 adds support for is_tablet(), is_desktop(), and is_browser() as well as numerous bug fixes and code improvements. As of version 3.1.2 automatic updates of browscap.ini are disabeld until we can deal with memory usage issues.
PHP Browser Detection is a WordPress plugin used to detect a user’s browser. It can be used to send conditional CSS files for Internet Explorer, display different content or custom messages anywhere on the page, or to swap out Flash for an image for iPhones.
Template Tags:
Test for specific browsers:
$version is optional. Include a major version number, a single integer – 3,4,5, etc… Or leave it empty to test for any version.
<?php if(is_firefox($version)) { /* your code here */ }; ?>
<?php if(is_safari($version)) { /* your code here */ }; ?>
<?php if(is_chrome($version)) { /* your code here */ }; ?>
<?php if(is_opera($version)) { /* your code here */ }; ?>
<?php if(is_ie($version)) { /* your code here */ }; ?>
<?php if(is_browser($name, $version)) { /* your code here */ }; ?>
Check for mobile, tablet, iPhone, iPad, iPod, etc…
<?php if(is_desktop()) { /* your code here */ }; ?>
<?php if(is_tablet()) { /* your code here */ }; ?>
<?php if(is_iphone($version)) { /* your code here */ }; ?>
<?php if(is_ipad($version)) { /* your code here */ }; ?>
<?php if(is_ipod($version)) { /* your code here */ }; ?>
<?php if(is_mobile()) { /* your code here */ }; ?>
Check for greater than / less than a specific version…
Less than or equal to Firefox 19:
< ?php if(is_firefox() && get_browser_version()
Less than or equal to IE 10:
< ?php if(is_ie() && get_browser_version()
Greater than or equal to Safari 4:
= 4) { /* your code here */ }; ?>
these are just a few examples, but this syntax will work for any browser or version.
Check specific versions…
Is the browser IE6?
Is the browser IE10?
Or you can get all the info and do what you want with it:
Get just the name…
<?php $browser_name = get_browser_name(); ?>
Get the full version number – 3.2, 5.0, etc…
<?php $browser_version = get_browser_version(); ?>
Or get it all in array…
<?php $browser_info = php_browser_info(); ?>
Shortcodes:
Test for specific browsers:
[is_browser name="chrome" version="45"]
<p>You are using Chrome 45 or above.</p>
[/is_browser]
Output all browser info:
[browser_info]
Installation
- Automatically install through the Plugin Browser or…
- Upload entire
php-browser-detectionfolder to the/wp-content/plugins/directory. - Aktivieren Sie das Plugin über das „Plugins“-Menü in WordPress.
Änderungsprotokoll
3.1.8
- Add missing include file
- Confirm filters aren’t working (needs refactor)
3.1.7
- Added shortcodes
3.1.6
- Bugfix for 3.1.5
3.1.5
- Updated Browscap to 2.0.5
- Re-enable auto-updates
- Added filter to turn off auto updates for host with low memory.
- Added FAQ about manually updating.
- Added global variable for
$browser_info = php_browser_info();
3.1.4
- Updated default browscap.ini
3.1.3
- Updated default browscap.ini
- Migrated Browscap.php to use asgrim’s fork
- Added ID param for tests
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best PHP Browser Detection alternatives
All browser plugins →Fragen und Antworten
PHP Browser Detection: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is PHP Browser Detection free?
Yes. PHP Browser Detection is free to download and use from the official WordPress.org plugin directory.
Is PHP Browser Detection safe to use in 2026?
PHP Browser Detection shows warning signs in 2026 — compare the alternatives below before installing. It runs on 500+ sites, is rated 4.1/5 and was last updated 11 years ago, and scores 35/100 on our health check.
How many websites use PHP Browser Detection?
PHP Browser Detection is active on 500+ WordPress websites and has been downloaded 47,413 times since it launched in January 2010. It was downloaded 237 times in the last 30 days.
Does PHP Browser Detection work with WordPress 7.1?
PHP Browser Detection is officially tested up to WordPress 4.3.34, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was PHP Browser Detection last updated?
The latest version, 3.1.8, was released on September 8, 2015 (11 years ago).
Who makes PHP Browser Detection?
PHP Browser Detection is developed and maintained by Mindshare Labs, Inc..
What are the best alternatives to PHP Browser Detection?
The most popular alternatives to PHP Browser Detection are WP Console (20K+ installs), Browser Screenshots (3K+ installs) and WP BrowserUpdate (1K+ installs).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte
