- Is Hoa\Math a Laravel package?
- No. Hoa\Math is a Composer-installable PHP math library, not a Laravel package, and it ships no service provider, facade, config file, or Laravel-specific integration. In a Laravel app, use it only behind an application-owned adapter rather than exposing Hoa types throughout your codebase.
- How do I install Hoa\Math in a Laravel application?
- Install it with Composer using composer require hoa/math, then verify that its PHP constraints and transitive Hoa dependencies resolve in your Laravel project. Because the last release was in 2017, run the install in an isolated branch or container first, pin the exact version, and commit the lockfile.
- Does Hoa\Math require any configuration or service provider in Laravel?
- There is no configuration to publish and no service provider to register. If you adopt it, keep any settings in your own Laravel config and wrap instantiation inside a dedicated service or adapter. Avoid adding a facade or global helper around it.
- Which Laravel and PHP versions are supported by Hoa\Math?
- There is no official Laravel version support statement. The package is archived and has stale PHP version constraints, so compatibility must be proven against the oldest and newest PHP versions you deploy and against your Laravel Composer constraints. CI dependency resolution is the reliable test.
- What use cases is Hoa\Math suitable for in a Laravel app?
- Hoa\Math is best suited to deterministic numeric helpers such as combinatorics, geometry, set operations, and random-number utilities. Do not make it a domain-wide dependency. Identify the exact APIs you need, keep Hoa types out of controllers, models, and contracts, and consider porting small routines internally.
- Does Hoa\Math support parsing or evaluating user-supplied expressions?
- Hoa\Math is not a hardened Laravel expression engine, and its evaluation or parsing features, if used, should be treated as a risk area. Never pass untrusted user formulas directly into it without length, complexity, and time limits. For user-supplied expressions, a maintained evaluator such as Symfony ExpressionLanguage is usually safer.
- Is Hoa\Math safe for production Laravel applications?
- Treat it as a short-term stopgap, not a strategic production dependency. It is end-of-life, has no security response, and your team owns all future fixes and PHP compatibility patches. Production use is defensible only for narrow deterministic helpers behind an adapter, with a documented exit plan.
- How do I test a Hoa\Math integration in Laravel?
- Write contract tests around the exact numeric behavior you depend on, including edge cases, precision limits, and overflow behavior. Run them in CI across your supported PHP and Laravel matrix and check that Composer resolves the same dependency set. Add regression tests before and after wrapping the library in your adapter.
- What are the best alternatives to Hoa\Math for Laravel projects?
- Consider brick/math for arbitrary-precision arithmetic, MathPHP for broader math functionality, or Symfony ExpressionLanguage for controlled expression evaluation. For a few small deterministic routines, porting them internally may be lower risk than adopting an archived package. Choose a maintained dependency unless Hoa\Math provides a specific API you cannot replace cheaply.
- Is Hoa\Math still maintained?
- No. Hoa\Math is archived, its last release was 2017-05-16, and support is community-only and effectively frozen. With weak ecosystem validation and no security response, most Laravel teams should avoid new adoption or plan a migration to a maintained alternative.