Comments (7)
Thank you for raising this issue. AFAIK, this could only happen for weather group data. I fixed that in d55e066.
from openweathermap-php-api.
Nice. But in this version you use excessive libraries :(
At my small site I can't use version 2+ :(
from openweathermap-php-api.
Hi @KarelWintersky,
Could you elaborate a bit more on why the requirement to install additional libraries prevents you from using this library? I am trying to understand what prevents you from installing them. Or is the jump in the required PHP version from 5 to 7 the issue?
from openweathermap-php-api.
I wrote about this problem here: #136
However, most bigger projects will likely already have PSR-17/18-compatible libraries installed.
My project is small, frameworkless. And, I hope, quick and perfomance-oriented. I can't use a lot of libraries.
Also, with 'recommended' libraries it does not work.
from openweathermap-php-api.
Also, with 'recommended' libraries it does not work.
It appears to be working on my end. To test it, I created a new composer.json
file with the following contents and ran composer install
:
{
"name": "root/app",
"require": {
"cmfcmf/openweathermap-php-api": "^3.0",
"http-interop/http-factory-guzzle": "^1.0",
"php-http/guzzle6-adapter": "^2.0"
}
}
I then executed the example code from the README using PHP 7.3.5 successfully.
from openweathermap-php-api.
Our production server uses PHP 7.0.11 now :(
from openweathermap-php-api.
Our production server uses PHP 7.0.11 now :(
Ahh, I see. I haven't checked all dependencies, but on a quick glance it seams that at least the php-http/guzzle6-adapter
library requires PHP 7.1+. Given that PHP 7.0 is EOL for more than a year now, I don't think it is feasible for me to invest the necessary time to make the example work with PHP 7.0. I know that upgrading PHP versions isn't alsways possible or easy, but I suppose you could continue using version 2.3 of this library for now and backport your fix to to it.
from openweathermap-php-api.
Related Issues (20)
- Zip Code? HOT 4
- Dealing with Internal error: 500001
- getRawWeatherGroupData() HOT 3
- OpenWeatherMap Class Not Found Error (NOT Installed through Composer) HOT 3
- GuzzleAdapter and Requestfactory excessive HOT 1
- $owm->getDailyWeatherForecast() HOT 6
- OWMNotFoundException never thrown
- Please add getForecast() method on WeatherForecast HOT 2
- Missing dependency psr/http-factory
- Move to Travis CI dot com or another CI service
- Add historic weather data HOT 1
- No method for One Call API HOT 4
- update to psr/cache to 3.0 ? HOT 1
- Return type of Cmfcmf\OpenWeatherMap\Util\Unit::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used HOT 1
- "Docusaurus" is spelled wrong in README.md HOT 1
- Replace UV Index API with One Call API
- typo HOT 1
- Convert Hourly Forecast into Daily Forecast
- Migrate to /guzzle7-adapter 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 openweathermap-php-api.