PHPackages                             cognito/bomradar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cognito/bomradar

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cognito/bomradar
================

Downloads maps and images from the Australian BOM Radars

1.0(8y ago)02.2k↓50%MITPHPPHP &gt;=5.3.2

Since Jun 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/joshbmarshall/bomradar)[ Packagist](https://packagist.org/packages/cognito/bomradar)[ RSS](/packages/cognito-bomradar/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

BOMRadar
========

[](#bomradar)

This package fetches images from the public ftp server of the Australian Bureau of Meteorology for their RADAR service for repackaging onto your own website.

Installation
------------

[](#installation)

Installation is very easy with composer:

```
composer require cognito/bomradar

```

If you don't have composer, download the Radar.php file and include it into your project.

Setup
-----

[](#setup)

Setup is simple, go to the Radar site  and choose a radar to fetch. Next get the radar size, e.g. 64, 128 or 256km radius and take note of the URL.

For example the 128km Brisbane Loop is IDR663.

We use just the number part, so in this case 663.

Cron to get the images
----------------------

[](#cron-to-get-the-images)

Set up a regular call through a cron or similar every 10 minutes, to sync and clean the local files.

```
