Giter Site home page Giter Site logo

php-apikit's People

Contributors

artkay avatar elricho avatar jessielabadan07 avatar thadafinser avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

php-apikit's Issues

Does only work with APC currently

Since i saw the new release, i gave the lib another try to integrate it to https://github.com/ThaDafinser/UserAgentParser

But i could not finish it.

First off, the cache cannot be changed to another then APC

Some methods also have missing parameters, e.g.
https://github.com/HandsetDetection/php-apikit/blob/master/src/HD4.php#L242

function localView($vendor, $model) {

Detection Language Issue preventing Device Detection

Hi,

We are getting errors like *Undefined index: en_us*​ ​_HDExtra.php@117_​ after deploying code using this package. This prevents scripts from completing device detection and results in a fatal error.

Locally, and on our beta server, we never saw this error.
Not sure if this is a permissions issue or something else.

Looping in @artkay

Reuse of instance not possible

If you reuse the same HD4 instance, sometimes the results are from previous detections.

$parser->deviceDetect($headers);
$resultRaw = $parser->getReply();

$parser->deviceDetect($otherHeaders);
$resultRaw = $parser->getReply();
//...the result can be from previous detection

I tried already to set

$parser->reply = [];
$parser->rawreply= [];
$parser->detectRequest = [];

But that seems not enough.

Bot result

If a userAgent is a bot, the result model is populated although it's not a model

Is there any criteria to detect bots?

Array
(
    [general_vendor] => Coc Coc Company Limited
    [general_model] => Spider
    [general_platform] => 
    [general_platform_version] => 
    [general_platform_version_max] => 
    [general_browser] => 
    [general_browser_version] => 
    [general_image] => 
    [general_aliases] => 
    [general_eusar] => 
    [general_battery] => 
    [general_type] => 
    [general_cpu] => 
    [general_virtual] => 0
    [design_formfactor] => 
    [design_dimensions] => 
    [design_weight] => 
    [design_antenna] => 
    [design_keyboard] => 
    [design_softkeys] => 
    [design_sidekeys] => 
    [display_type] => 
    [display_color] => 
    [display_colors] => 
    [display_size] => 
    [display_x] => 0
    [display_y] => 0
    [display_ppi] => 0
    [display_pixel_ratio] => 0
    [display_other] => 
    [memory_internal] => 
    [memory_slot] => 
    [network] => 
    [media_camera] => 
    [media_secondcamera] => 
    [media_videocapture] => 
    [media_videoplayback] => 
    [media_audio] => 
    [media_other] => 
    [features] => 
    [connectors] => 
    [benchmark_min] => 0
    [benchmark_max] => 0
    [general_app] => 
    [general_app_version] => 
    [general_app_category] => 
    [general_language] => 
    [display_css_screen_sizes] => 
)

Detect if userAgent "not found" vs. zip archive not installed

When using this config

$config = [
            'username' => 'something',
            'secret' => 'something',

            'use_local' => true,

            'log_unknown' => false
        ];

And try to detect a userAgent, you may get Not found.

This can be a real "not found" or the filesdir is not correct.

A custom message for not correct installed or something like that would be good.

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.