ite/common
ite/common is a Laravel/PHP package offering shared helpers, traits, and base classes for common application tasks. It reduces boilerplate and helps keep multiple projects consistent, providing a practical foundation for reusable backend code.
composer require itedev/common, then immediately run composer show itedev/common to confirm the resolved version, PHP constraint, and the actual autoload namespace before writing a single import.vendor/itedev/common/composer.json and vendor/itedev/common/src/ first. With 2 stars and 0 dependents, the source is the documentation. The autoload block tells you the namespace (likely Ite\Common\ — verify), and the src/ tree is small enough to read in one sitting. Skim every class and note which functions are global vs. namespaced.php artisan tinker: instantiate the primary helper class(es) and call a few methods with known inputs (null, '', '0', a unicode string, a numeric string). This confirms autoloading works and shows you return types and failure behavior before anything touches app code.use the classes directly. If you need DI, mockability, or test doubles, wrap the static helpers in a small App\Support\... service class and bind that in a service provider — never resolve the vendor classes from the container.App\Support\Helpers) that delegates to ite/common. This gives you one swap point if you later vendor, fork, or replace it, and keeps the vendor namespace out of domain logic. It also lets you add Laravel-idiomatic conveniences: accept null, return Collection, accept both arrays and Collection inputs.Str, Arr, Number, Collection, and a pile of global helpers. For each package method you want, compare behavior on edge cases: null, '', '0', 0, unicode, numeric strings, nested arrays. Adopt the package method only where it clearly does something Illuminate does not do — or does it more cleanly for your specific case.prepareForValidation() on the FormRequest rather than sprinkling it through controllers. It keeps normalization declarative and testable.grep for App\Support\Helpers should enumerate every call site, which is what makes an eventual removal cheap.grep the package for function and function_exists, and diff its global function names against Laravel's helper list and your own."itedev/common": "0.3.1"), not ^0.3. Add composer.lock to review and check composer audit after every update.null or '', producing wrong output rather than an exception. Write contract tests around anything you wrap: assert the adapter's behavior, not the vendor's, so drift is caught.App\Support, confirm the license permits redistribution with attribution and check the exact terms (MIT is fine; anything unusual is not).config/common.php to check and no artisan command to debug. Go straight to the source: add dd() inside the vendor method during a spike, and put the call behind the adapter so you can log inputs/outputs from one place.App\Support with attribution and tests, and skip the dependency entirely. The adapter pattern above makes that transition a one-line delete when you're ready.How can I help you explore Laravel packages today?