PHPackages                             chrishardie/laravel-calendar-crawler - 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. chrishardie/laravel-calendar-crawler

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

chrishardie/laravel-calendar-crawler
====================================

Laravel package to enable crawling web pages for event data, generating corresponding ICS feeds

v1.0.0(4y ago)06MITPHPPHP ^7.4|^8.0

Since Oct 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ChrisHardie/laravel-calendar-crawler)[ Packagist](https://packagist.org/packages/chrishardie/laravel-calendar-crawler)[ Docs](https://github.com/chrishardie/laravel-calendar-crawler)[ GitHub Sponsors](https://github.com/ChrisHardie)[ RSS](/packages/chrishardie-laravel-calendar-crawler/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (11)Versions (5)Used By (0)

Laravel package to enable crawling web pages for event data, generating corresponding ICS feeds
===============================================================================================

[](#laravel-package-to-enable-crawling-web-pages-for-event-data-generating-corresponding-ics-feeds)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7a197b33d02e49cd1c80f9e50e848a794875fa774b14b3fbb684f46bbe3aed03/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63687269736861726469652f6c61726176656c2d63616c656e6461722d637261776c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chrishardie/laravel-calendar-crawler)[![GitHub Tests Action Status](https://camo.githubusercontent.com/0a41b5c6b3de1b17d5b2579e8e6114456c2db0c9c1a629465147ae474bc79963/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f63687269736861726469652f6c61726176656c2d63616c656e6461722d637261776c65722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/chrishardie/laravel-calendar-crawler/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/2309a19ca99b6520922f2caa127287dd920dfc4afb515956951452b5395c1c82/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f63687269736861726469652f6c61726176656c2d63616c656e6461722d637261776c65722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/chrishardie/laravel-calendar-crawler/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/0de9389c92630b50f72871bb9a617f2e82488530156c862ad0df18ecc04eae79/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63687269736861726469652f6c61726176656c2d63616c656e6461722d637261776c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chrishardie/laravel-calendar-crawler)

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

[](#installation)

You can install the package via composer:

```
composer require chrishardie/laravel-calendar-crawler
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="ChrisHardie\CalendarCrawler\CalendarCrawlerServiceProvider" --tag="calendar-crawler-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="ChrisHardie\CalendarCrawler\CalendarCrawlerServiceProvider" --tag="calendar-crawler-config"
```

This is the contents of the published config file:

```
return [
    'default_update_frequency' => 720, // Refresh every 12 hours

    'calendar_name' => 'Calendar of Events',

    'calendar_description' => 'A calendar of events from various sources.',

    // Default URL of calendar ICS feed
    'stream_url' => '/calendar/calendar.ics',

    // Source-specific authentication information
    'auth' => [
        'google' => [
            'api_key' => env('GOOGLE_CAL_API_KEY'),
        ]
    ],
];
```

You can add a web route for a calendar ICS feed of all stored events:

```
Route::calendarstream();
```

Usage
-----

[](#usage)

1. Use an admin interface, artisan tinker session, DB seeder file or direct database call to add calendar sources. The main fields needed are:

- Name
- Type (currently, `GoogleCalendar` or `FacebookPage`)
- Home URL
- Location (either the Google Calendar calendar ID or the Facebook Page's numeric page ID)

```
        DB::table('calendar_sources')->insert([
            'name' => 'Your Local Government',
            'type' => 'GoogleCalendar',
            'home_url' => 'https://www.government.gov/',
            'location' => 'googlecalendarid@gmail.com',
        ]);

        DB::table('calendar_sources')->insert([
            'name' => 'Cool Nonprofit Organization',
            'type' => 'FacebookPage',
            'home_url' => 'https://www.facebook.com/orgname/',
            'location' => '12345678',
        ]);
```

2. If you specify any GoogleCalendar sources, you will need to [create an API key](https://console.cloud.google.com/apis/credentials) and then define a `GOOGLE_CAL_API_KEY` with that key as the value in your `.env` file.
3. The sources provided will be crawled according to the update frequency specified.
4. Use the event data elsewhere within your Laravel application directly, or retrieve an ICS calendar feed of events at the `stream_url` location specified.

Crawling issues, errors and notices will be written to the log stack configured. Consider using a Slack channel for convenience.

Uninstalling
------------

[](#uninstalling)

Remove any web routes created during installation.

Remove the package and any dependencies:

```
composer remove chrishardie/laravel-calendar-crawler

```

Remove `config/calendar-crawler.php`.

Drop the related tables in a new migration:

```
Schema::dropIfExists('calendar_sources');
Schema::dropIfExists('events');
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Chris Hardie](https://github.com/ChrisHardie)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1723d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/311772?v=4)[Chris Hardie](/maintainers/ChrisHardie)[@ChrisHardie](https://github.com/ChrisHardie)

---

Top Contributors

[![ChrisHardie](https://avatars.githubusercontent.com/u/311772?v=4)](https://github.com/ChrisHardie "ChrisHardie (47 commits)")

---

Tags

laravelChrisHardielaravel-calendar-crawler

###  Code Quality

TestsPest

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/chrishardie-laravel-calendar-crawler/health.svg)

```
[![Health](https://phpackages.com/badges/chrishardie-laravel-calendar-crawler/health.svg)](https://phpackages.com/packages/chrishardie-laravel-calendar-crawler)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
