Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Humbug Get Contents Laravel Package

padraic/humbug_get_contents

Drop-in replacement for file_get_contents() that secures HTTPS requests on PHP 5.3+ by injecting a strict SSL/TLS stream context (CA validation, verification). Helps prevent MITM attacks when fetching APIs, PHARs, or other remote content.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

This package supports decisions to secure legacy PHP applications (5.3–5.5) where upgrading PHP is not immediately feasible. It provides a drop-in solution to mitigate Man-in-the-Middle (MITM) vulnerabilities in HTTPS requests using file_get_contents(), avoiding the need for custom code or major refactoring. Use cases include maintaining older systems with high dependency on native PHP HTTP functions, addressing compliance gaps in security-critical workflows (e.g., API integrations, PHAR downloads), and acting as a temporary "band-aid" during phased modernization efforts. It represents a clear "buy" decision over building a custom wrapper, given its focused scope and pre-vetted security configurations.

When to Consider This Package

Consider this package only if your project runs PHP <5.6, cannot upgrade PHP in the short term

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle