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…
Considere uma alternativa
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.
- Base de usuários pequenas (mais de 500 instalações ativas)
- Nenhuma atualização em 11 anos
- Testado apenas até WordPress 4.3 (mais recente é 7.1)
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where PHP Browser Detection stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| browser | >100 |
| browser detection | >100 |
| internet explorer | >100 |
| iphone | >100 |
| php | >100 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
Divisão de classificação
★★★★★★★★★★ 4.1 from 16 reviews
About PHP Browser Detection
From the official readme · v3.1.8Descrição
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]
Instalação
- Automatically install through the Plugin Browser or…
- Upload entire
php-browser-detectionfolder to the/wp-content/plugins/directory. - Ative o plugin através do menu 'Plugins' em WordPress.
Log de Changes
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
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best PHP Browser Detection alternatives
All browser plugins →FAQ
PHP Browser Detection: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: 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).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito
