Weave 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

Encrypt Bundle Laravel Package

iserranodev/encrypt-bundle

iserranodev/encrypt-bundle provides simple, reusable encryption and decryption support for PHP applications. It wraps common crypto operations in a clean API, helping you protect sensitive values with minimal boilerplate and integrate secure data handling into your app quickly.

View on GitHub
Deep Wiki
Context7

Getting Started

  1. Confirm what the bump actually unlocks. The only change in 1.3.1 is a dependency constraint update ("for use it in Symfony 7.*"). Before adopting, read composer.json on the 1.3.1 tag and compare the require block against 1.3.0 — that diff, not the changelog, tells you whether the package now permits symfony/*: ^7.0 alongside ^6.4, or has dropped Symfony 6 support. A widening constraint is safe; a replacement is a breaking change for anyone on Laravel 10.

  2. Install and let auto-discovery do its job.

    composer require <vendor>/<package>:^1.3
    php artisan about          # sanity-check the framework + PHP versions it resolved against
    

    If the package ships a service provider, Laravel's package discovery registers it. Check bootstrap/providers.php (Laravel 11) or config/app.php (10 and below) only if discovery is disabled in the package's composer.json extra.laravel block.

  3. Look here first, in this order: the package's README usage snippet → src/ service provider (what it binds, what it publishes) → config/<package>.php after php artisan vendor:publish --tag=<package>-config. The provider is the map of every extension point you'll actually touch.

  4. First use case: get the happy path working end-to-end on a throwaway branch before wiring it into anything real — resolve the class from the container (app(SomeClient::class)) rather than new, so you immediately learn whether the binding is a singleton, a factory, or request-scoped.

Implementation Patterns

  • Bind once, inject everywhere. Resolve the package's main entry point from the container in a constructor or method signature. This keeps you compatible with whatever the package does internally on version bumps (decorators, scoped instances, test doubles).
  • Wrap it in a thin application-level adapter. Create app/Services/<Something>Service.php that owns the package calls. When 1.4 or 2.0 lands — or when you swap the package out — you change one file instead of grepping 40 call sites.
  • Drive configuration from config/<package>.php, not from code. Publish the config, keep secrets in .env, and reference them via env() only inside the config file (never in application code — env() returns null once config:cache runs).
  • Queue the slow paths. Most packages of this shape do I/O (HTTP, filesystem, external API). Put those calls in a job with $tries/$backoff set explicitly, and use Http::retry()-style semantics via the package if it exposes them rather than wrapping a bare try/catch.
  • Test against a fake, not the network. Register a fake in TestCase::setUp() or use the package's own testing helpers if the README documents them. If it offers no fake, bind a stub in the container inside your test — that's also the cheapest way to discover whether the package is container-friendly.
  • Pin the minor while you evaluate. Use "^1.3" in composer.json and let composer.lock do the pinning. Commit the lockfile change from the 1.3.1 upgrade as its own PR so CI surfaces any Symfony 7 resolution surprise in isolation.

Gotchas and Tips

  • Symfony 7 means PHP 8.2+. If the new constraint is ^7.0 only, the package silently raises your PHP floor. Confirm your CI matrix and any platform.php config in composer.json before merging.
  • Laravel version coupling. Laravel 11 pulls Symfony 7 components; Laravel 10 sits on Symfony 6.4. A package that supports both (^6.4 || ^7.0) is the ideal outcome here — verify the constraint is a union, not a swap. Laravel 9 users are almost certainly out of scope now.
  • The changelog is thin and misspelled. "Update dependecies for use it in Symfony 7.*" is the entire note — no issue link, no PR, no mention of behaviour changes. Treat 1.3.1 as low-risk but unverified: read the diff. Dependency bumps occasionally drag in transitive majors that change runtime behaviour without a corresponding source change in the package.
  • Debug resolution failures with composer why-not. If composer require refuses, composer why-not <vendor>/<package> 1.3.1 and composer why symfony/http-foundation will point at the conflicting package far faster than reading error walls.
  • Clear caches after upgrading a provider-bearing package. php artisan config:clear && php artisan cache:clear (or optimize:clear) before concluding something broke — stale compiled config is the most common false alarm.
  • Extension points to look for: Macroable traits, container bind/singleton calls in the provider, published config keys, and any dispatched events. Those four are where you customise without forking, which is what keeps you off a pinned old version when the next release lands.
  • Upgrade path from 1.2.x: run the suite, then run composer outdated afterwards — a widened Symfony constraint often means other packages in the same dependency family are now also upgradable, and it's cheaper to do that sweep in one PR than three.
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.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core