- How do I install Intervention Zodiac in a Laravel application?
- Install it with composer require intervention/zodiac. There are no migrations, environment variables, or config files to publish, so setup is measured in minutes. If you want to keep the dependency swappable, bind it behind a thin application service rather than instantiating it directly in controllers.
- Which Laravel versions does Intervention Zodiac support?
- The package is framework-agnostic pure PHP, so it works identically on Laravel 10, 11, and 12 without version constraints that bite. It carries no ORM, queue, or HTTP coupling. That also means you get no Laravel-specific helpers, so integration wiring is your responsibility.
- Does Intervention Zodiac ship a Laravel service provider or facade?
- The package is described as framework-agnostic with a single primary class surface, and no service provider or facade is documented. Confirm whether auto-discovery applies in your version before assuming it. If there is none, add a manual container binding in a service provider instead of instantiating the class inline.
- How do I get a zodiac sign from a birth date string?
- The package resolves zodiac signs directly from DateTime objects or date strings, so you can pass a user's stored birth date without extra parsing. The API is intentionally small and expressive, with no configuration required. Wrap the returned Sign in your own value object if you do not want the vendor type leaking into views or API resources.
- Can I customize the Western zodiac cusp and boundary dates?
- The overview does not document configurable cusp dates, so treat the built-in boundaries as fixed defaults until you verify otherwise in the source. Boundary-date drift is invisible in code review but very visible to users, so compare the defaults against the markets you serve. If your product needs different cutoffs, keep that logic in your own wrapper layer.
- Is the Chinese zodiac year boundary aware of Lunar New Year?
- The Chinese zodiac is included, but the release notes do not state whether the year boundary follows Lunar New Year or a hardcoded January 1. This is the most common correctness defect for Chinese zodiac features, so test dates in January and early February explicitly. If the package uses a fixed calendar boundary, apply the Lunar New Year adjustment in your own service.
- What is the difference between the tropical and sidereal zodiac systems in this package?
- The package supports both the tropical system used in Western astrology and the sidereal system used in Vedic astrology. You choose which system to resolve against rather than getting a single hardcoded result. That makes it usable for international products, but you should still decide which system is the default per locale.
- What does json_encode return for a Sign object in version 7.1?
- Version 7.1.0 adds JsonSerializable to the Sign class, which changes json_encode output for existing consumers. It is likely a scalar identifier rather than a structured array, but the exact shape is not spelled out in the notes. Pin the emitted shape in a contract test and audit API resources, cache payloads, and queued jobs where a Sign is embedded.
- Which PHP versions are required, and is PHP 8.6 supported?
- The package runs on pure PHP 8.x with no extensions and no framework constraints. Version 7.1.0 adds PHP 8.6 to CI, but that is a forward-compatibility signal rather than a production runtime guarantee. Do not sequence a PHP 8.6 rollout off that note alone, and keep the package on a patch cadence.
- Should I use Intervention Zodiac or keep my own in-house zodiac logic?
- The package is small, deterministic, and has minimal dependencies, which makes it a reasonable replacement for hand-rolled sign lookup code. Maintenance overhead is near zero, though it is a single-maintainer project with community support and no commercial SLA. If you do replace existing logic, run both implementations in parallel behind a feature flag across a full 366-day sweep before cutting over.