PHPackages                             einenlum/php-stack-detector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. einenlum/php-stack-detector

Abandoned → [fortrabbit/stack-detector](/?search=fortrabbit%2Fstack-detector)Library[Utility &amp; Helpers](/categories/utility)

einenlum/php-stack-detector
===========================

A package to detect the PHP stack and node config of a project

5.3.0(7mo ago)4142MITPHPPHP ^8.4CI passing

Since Oct 13Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/fortrabbit/stack-detector)[ Packagist](https://packagist.org/packages/einenlum/php-stack-detector)[ RSS](/packages/einenlum-php-stack-detector/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (15)Used By (0)

Stack Detector
==============

[](#stack-detector)

This library allows to easily detect the PHP stack (Wordpress, Laravel, Symfony…) and the version used, when parsing a directory or ar Github remote repository.

The library is still in an early stage and subject to changes, but it follows SemVer. As long as you stick to a major version, you should be safe.

Supported Stacks for now:

- Bolt CMS
- Cakephp
- Codeigniter
- Craft CMS
- Drupal
- Grav CMS
- Kirby CMS
- Laravel
- Leaf PHP
- Lunar
- October CMS
- Shopware
- Statamic
- Symfony
- Tempest
- Twill
- Typo3 CMS
- Winter CMS
- Wordpress

It also detects if the repository uses nodeJS. If so, it detects node version (through .nvmrc or .node-version), node version requirements, and package manager.

Detected package managers:

- npm
- pnpm
- bun
- yarn
- yarn berry

Install
-------

[](#install)

```
composer require fortrabbit/stack-detector

```

Usage
-----

[](#usage)

```
