Comments (5)
I came up with workaround to add this library to my project using Composer.
Add this code to the composer.json
file of your project:
"repositories": [
...
{
"type": "package",
"package": {
"name": "NielsLeenheer/WhichBrowser",
"version": "dev-master",
"dist": {
"url": "https://github.com/NielsLeenheer/WhichBrowser/archive/master.zip",
"type": "zip"
},
"source": {
"type": "git",
"url": "https://github.com/NielsLeenheer/WhichBrowser.git",
"reference": "master"
}
}
}
],
"require": {
...
"NielsLeenheer/WhichBrowser": "dev-master"
},
After that run composer install
or composer update
.
However, in order to update this package you will have to manually delete (or modify) composer.lock
file and delete NielsLeenheer
directory from vendors. Aftet that just run update
again.
I would love if Niels will add composer.json support though.
from parser-php.
Both Composer and Bower support will come soon. I'm right in the middle of refactoring, adding a test suite and splitting up the library and web service. Once I am done with that I will release an official 1.0 version proper package manager support.
from parser-php.
Cool, thanks! Does it mean, that detect.php
will be hosted on your server?
from parser-php.
Well... yes and no.
I have no plans of offering a hosted version to the general public. But I do host a version of it for html5test.com and allow other open source projects to use that hosted version as long as they ask nicely beforehand and if it does not add any significant load to the server.
But I do plan to split the project into two separate installable packages:
- a PHP library that can be used server-side
- the current web service that can be used from JavaScript client-side
from parser-php.
I'm closing this bug. Further discussion can happen in bug #23.
from parser-php.
Related Issues (20)
- Not Detecting WebView Browsers HOT 4
- Proposal: Set all names to English non-extended Latin character set range to allow automatic translation templates
- Incorrect detection of user agent string
- Invalid
- Undefined property HOT 1
- Brave Browser - Incorrect detection of user agent string HOT 2
- Incompatible with PSR/Cache ^2 HOT 3
- Updating notes for `webOs` browser
- Get brand information HOT 1
- Undetected user agents HOT 1
- Projects with low Build Activity - Survey
- [PHP 8.1] Deprecated functions HOT 3
- Chrome wrong version Detection HOT 3
- Wrong autoload HOT 1
- PHP 8.2 deprecations HOT 10
- Incompatability with automattic/jetpack-autoloader HOT 2
- macOS not detected HOT 3
- $os property non-nullable
- Project abandoned? HOT 3
- SSL certificate expired HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parser-php.