grambas / football-data Goto Github PK
View Code? Open in Web Editor NEWFootball-Data.org Api container for Laravel 5
License: MIT License
Football-Data.org Api container for Laravel 5
License: MIT License
I've just installed the package but unfortunately it doesn't have the latest commits and this completely breaks it, leaving random strings in the FootballData.php file:
public function __construct(Client $client )
{
$this->client = $client;
}
<<<<<<< HEAD
//COMPETITION/LEAGUE
public function LeagueTable($id, $matchday="")
{
$leagueTable = $this->client->get("competitions/{$id}/leagueTable/?matchday={$matchday}")->getBody();
return json_decode($leagueTable);
}
I can see this was fixed in a commit here: 64cebb4
But when doing composer install or composer update these commits are not included.
How do I get live matches?
Hi,
sorry - it's me again.
I've installed your package in a fresh Laravel 5.2 installation and tried to call:
Football::getLeagues();
After installing GuzzleHTTP I got the following:
in CurlFactory.php line 186
at CurlFactory::createRejection(object(EasyHandle), array('errno' => '6', 'error' => 'Could not resolve host: http', 'url' => 'http://http:v1/soccerseasons', 'content_type' => null, 'http_code' => '0', 'header_size' => '0', 'request_size' => '0', 'filetime' => '-1', 'ssl_verify_result' => '0', 'redirect_count' => '0', 'total_time' => '0.000232', 'namelookup_time' => '0', 'connect_time' => '0', 'pretransfer_time' => '0', 'size_upload' => '0', 'size_download' => '0', 'speed_download' => '0', 'speed_upload' => '0', 'download_content_length' => '-1', 'upload_content_length' => '-1', 'starttransfer_time' => '0', 'redirect_time' => '0', 'redirect_url' => '', 'primary_ip' => '', 'certinfo' => array(), 'primary_port' => '0', 'local_ip' => '', 'local_port' => '0')) in CurlFactory.php line
It seems there is a problem generating the URL (double http:// instead of the Servername).
There are not all team's logo ? (ex: PSG, Strasbourg...)
Thank You !
Hi,
if i try to install via composer (composer require grambas/football-data) in a fresh Laravel Instance I've got following Error:
[InvalidArgumentException]
Could not find package grambas/football-data at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
What am I doing wrong?
wher to put api key?
Hello Team,
Is this project still working? I seem to be getting old data on the API
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.