Skip to content

Use GuzzleHttp#2

Open
jonbot wants to merge 1 commit intomicaherne:masterfrom
CivicActions:add-guzzle
Open

Use GuzzleHttp#2
jonbot wants to merge 1 commit intomicaherne:masterfrom
CivicActions:add-guzzle

Conversation

@jonbot
Copy link
Copy Markdown

@jonbot jonbot commented Jun 24, 2025

I realize this project hasn't been updated for a long time, but our project has just started to use it. It's been very helpful -- thank you!

The script still mostly runs, except for an issue with line 12: file_get_contents() appears to no longer work with the Moodle plugin API (likely because it's lacking an agent header).

It's more common practice to use GuzzleHttp these days, and though it adds some overhead, it quickly fixes the issue. Note that with this PR, composer install will now have to be run before running gen.php.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant