Coder Social home page Coder Social logo

Comments (5)

slavafomin avatar slavafomin commented on June 14, 2024

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.

NielsLeenheer avatar NielsLeenheer commented on June 14, 2024

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.

slavafomin avatar slavafomin commented on June 14, 2024

Cool, thanks! Does it mean, that detect.php will be hosted on your server?

from parser-php.

NielsLeenheer avatar NielsLeenheer commented on June 14, 2024

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.

NielsLeenheer avatar NielsLeenheer commented on June 14, 2024

I'm closing this bug. Further discussion can happen in bug #23.

from parser-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.