Download the PHP package browscap/browscap without Composer
On this page you can find all versions of the php package browscap/browscap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package browscap
Browser Capabilities Project
This tool is used to build and maintain browscap files.
Installation
What's changed in version 6048
- https://github.com/browscap/browscap/pull/2535 Added recent new Apple platforms (Mac OS, iOS and iPadOS)
What's changed in version 6028
BC breaks listed
- Interface changed for class \Browscap\Data\Factory\UserAgentFactory
What's changed in version 6027
BC breaks listed
- Strict type hints have been added throughout. This may break some type assumptions made in earlier versions.
- In many classes Setters and Getters have been removed, the parameters have been moved to the class constructor
- Some classes are now
final
- use composition instead of inheritance
What's changed in version 6025
BC breaks listed
- The
grep
command and thediff
command were removed
Changes
- The tests for integration testing the source files are split from the other tests
- Tests on travis use the build pipeline now
Directory Structure
bin
- Contains executable filesbuild
- Contains various buildsresources
- Files needed to build the various files, also used to validate the capabilitiessrc
- The code of this project lives heretests
- The testing code of this project lives here
the CLI commands
There is actually only one cli command available.
build
This command is used to build a set of defined browscap files.
options
version
(required) the name of the version that should be builtoutput
(optional) the directory where the files should be createdresources
(optional) the directory where the sources for the build are locatedcoverage
(optional) if this option is set, during the build information is added which can be used to generate a coverage reportno-zip
(optional) if this option is set, no zip file is generated during the build
For further documentation on the build
command, see here.
CLI Examples
You can export a new set of browscap files:
Now you if you look at browscap/browscap.ini
you will see a new INI file has been generated.
Usage Examples
How to build a standard set of browscap files
This example assumes that you want to build all *php_browscap.ini files.
How to build a custom set of browscap files
If you want to build a custom set of browscap files, you may not use the predefined WriterFactories.
How to build a custom browscap.ini
If you want to build a custom browscap file you may choose the file name and the fields which are included.
Note: It is not possible to build a custom browscap.ini file with the CLI command.
Issues and feature requests
Please report your issues and ask for new features on the GitHub Issue Tracker at https://github.com/browscap/browscap/issues
Contributing
For instructions on how to contribute see the CONTRIBUTE.md file.
License
See the LICENSE file.
All versions of browscap with dependencies
ext-json Version *
beberlei/assert Version ^3.3.2
ergebnis/json-normalizer Version ^4.2.0
mimmi20/ua-browser-type Version ^9.0.2
mimmi20/ua-device-type Version ^9.0.2
monolog/monolog Version ^3.4.0
seld/jsonlint Version ^1.10.0
symfony/console Version ^v6.3.4
symfony/finder Version ^v6.3.3
twig/twig Version ^v3.7.1