Skip to content

Commit 8a9b87f

Browse files
committed
Add instructions for development with Docker
1 parent a1fe20b commit 8a9b87f

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,37 @@ http://home.openweathermap.org/ and put it into `Examples/ApiKey.ini`.
5858
- `CurrentWeather.php` Shows how to receive the current weather.
5959
- `WeatherForecast.php` Shows how to receive weather forecasts.
6060
- `WeatherHistory.php` Shows how to receive weather history.
61+
- `UVIndex.php` Shows how to receive uv index data.
6162
- `Cache.php` Shows how to implement and use a cache.
6263

6364
Contributing
6465
============
6566
I'm happy about every **pull request** or **issue** you find and open to help
6667
make this API **more awesome**.
6768

69+
## Vagrant
70+
6871
You can use [Vagrant](https://vagrantup.com) to kick-start your development.
6972
Simply run `vagrant up` and `vagrant ssh` to start a PHP VM with all
7073
dependencies included.
7174

72-
## Support me
75+
## Docker
76+
77+
You can also use Docker to start developing this library. First install dependencies:
78+
79+
docker run --rm --interactive --tty \
80+
--volume $PWD:/app \
81+
--user $(id -u):$(id -g) \
82+
composer install
83+
84+
And then execute an example:
85+
86+
docker run --rm --interactive --tty \
87+
--volume $PWD:/app -w /app \
88+
php bash
7389

74-
If you like my work, I'd really appreciate you buying me a coffee.
75-
Your donations help me put more time into Open-Source software development.
90+
> php Examples/CurrentWeather.php
7691

77-
<a href='https://ko-fi.com/cmfcmf' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
7892

7993
License
8094
=======

0 commit comments

Comments
 (0)