handsetdetection / laravel51-provider Goto Github PK
View Code? Open in Web Editor NEWA Laravel 5.1 service provider for the HandsetDetection v4.x PHP API kit.
License: MIT License
A Laravel 5.1 service provider for the HandsetDetection v4.x PHP API kit.
License: MIT License
Looks like the library has issues parsing the user agent when using the local handset detection feature.
Here’s what we are using (which works via api call, but fails locally):
$hd = App('HandsetDetection');
$hd->deviceDetect(['user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_1_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B436 Safari/600.1.4']);
This fails with a 301 locally.. HDDevice:440 doesn’t find anything:
$_id = $this->getMatch('user-agent', $headers['user-agent'], DETECTIONV4_GENERIC, 'agent', 'device');
We have all of the supplied json files in the directory that the library is set up to pull from (/home/***/***/storage/app/hd40store
) - but it’s not getting that far because of the issue above
Looping in @artkay @biteknight
Sometimes during
$hd = App('HandsetDetection');
$hd->communityFetchArchive();
we are getting error:
[ErrorException]
ZipArchive::close(): Invalid or unitialized Zip object
I assume it is connection problem and the archive is broken due that. Is there any way to check this from your end, guys?
Looping in @djskripta and @Lagawrd
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.