Download the PHP package wezom-agency/browserizr without Composer

On this page you can find all versions of the php package wezom-agency/browserizr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package browserizr

Browserizr PHP

license composer npm WezomAgency

Browserizr is tiny library, that detects your browser
with testing $_SERVER['HTTP_USER_AGENT'].

that is PHP port of the JavaScript library WezomAgency/Browserizr
with several limitations...


Install


Prev versions

please read:


API

List of built-in tests

  1. Browserizr::detect()->isAndroid()
  2. Browserizr::detect()->isAndroid3()
  3. Browserizr::detect()->isAndroid4()
  4. Browserizr::detect()->isAndroid5()
  5. Browserizr::detect()->isAndroid6()
  6. Browserizr::detect()->isAndroid7()
  7. Browserizr::detect()->isAndroid8()
  8. Browserizr::detect()->isBlackberry()
  9. Browserizr::detect()->isBlackberry10()
  10. Browserizr::detect()->isEdge()
  11. Browserizr::detect()->isEdgeAndroid()
  12. Browserizr::detect()->isEdgeIOS()
  13. Browserizr::detect()->isIE()
  14. Browserizr::detect()->isIE8()
  15. Browserizr::detect()->isIE9()
  16. Browserizr::detect()->isIE10()
  17. Browserizr::detect()->isIE11()
  18. Browserizr::detect()->isIPad()
  19. Browserizr::detect()->isIPod()
  20. Browserizr::detect()->isIPhone()
  21. Browserizr::detect()->isWindowsPhone()
  22. Browserizr::detect()->isMoz()
  23. Browserizr::detect()->isOpera()
  24. Browserizr::detect()->isSafari()
  25. Browserizr::detect()->isChrome()
  26. Browserizr::detect()->isMobile()
  27. Browserizr::detect()->isDesktop()

Usage examples:


Generate css classes

Browserizr::detect()->cssClasses($tests, $cssPrefix = "", $toString = true): array|string

Create string with CSS classes

Parameters:

Name Data type Default value Description
$tests string[] array of wanted tests, each name - test name without is prefix
$cssPrefix string "" custom prefix for CSS class name
$toString bool true implode resulted array and return as string;

Usage examples:

Set custom UserAgent

by default Browserizr use $_SERVER['HTTP_USER_AGENT']
you can set own string for UserAgent.

Note
if you needed to change agent - you must do it before use the Browserizr tests



All versions of browserizr with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wezom-agency/browserizr contains the following files

Loading the files please wait ....