PHPackages                             aedart/laravel-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. aedart/laravel-detector

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

aedart/laravel-detector
=======================

Utility for detecting if a Laravel application is available or not. Can be used to determine if a given component must perform logic based current Laravel application settings or not.

4.0.0(8y ago)12123BSD-3-ClausePHPPHP &gt;=7.1.0

Since Apr 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/aedart/laravel-detector)[ Packagist](https://packagist.org/packages/aedart/laravel-detector)[ Docs](https://github.com/aedart/laravel-detector)[ RSS](/packages/aedart-laravel-detector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (14)Used By (3)

[![Build Status](https://camo.githubusercontent.com/b2181dc678b62bea14a87ed137cbcfa8f1cb10fa492a3e62310661254bf2ba07/68747470733a2f2f7472617669732d63692e6f72672f6165646172742f6c61726176656c2d6465746563746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/aedart/laravel-detector)[![Latest Stable Version](https://camo.githubusercontent.com/cbf35540c35cb6f1aa4a74dc0203087b1bd01756c141ed1fc0efdd73f5e77446/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6c61726176656c2d6465746563746f722f762f737461626c65)](https://packagist.org/packages/aedart/laravel-detector)[![Total Downloads](https://camo.githubusercontent.com/45e3b5e5d4b151ee26b01e3f18c745db1d62cf2d013f38e9d55a3d7f08a45071/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6c61726176656c2d6465746563746f722f646f776e6c6f616473)](https://packagist.org/packages/aedart/laravel-detector)[![Latest Unstable Version](https://camo.githubusercontent.com/05af7043a275f3a0847c96d9efd467e81b0583ed7587abafd73e9bc765fd0a97/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6c61726176656c2d6465746563746f722f762f756e737461626c65)](https://packagist.org/packages/aedart/laravel-detector)[![License](https://camo.githubusercontent.com/131e7634b3887c96d09fb93947d380233862e2cd923f5ee4d36672b3a444d022/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6c61726176656c2d6465746563746f722f6c6963656e7365)](https://packagist.org/packages/aedart/laravel-detector)

Abandoned - Laravel-Detector
----------------------------

[](#abandoned---laravel-detector)

Utility for detecting if a Laravel application is available or not. Can be used to determine a given component must perform logic based current Laravel application settings or not.

Contents
--------

[](#contents)

- [When to use this](#when-to-use-this)
- [How to install](#how-to-install)
    - [For Laravel version 5.6.x](#for-laravel-version-56x)
    - [For Laravel version 5.5.x](#for-laravel-version-55x)
    - [For Laravel version 5.4.x](#for-laravel-version-54x)
    - [For Laravel version 5.3.x](#for-laravel-version-53x)
    - [For Laravel version 5.2.x](#for-laravel-version-52x)
- [Quick start](#quick-start)
- [Contribution](#contribution)
    - [Bug Report](#bug-report)
    - [Fork, code and send pull-request](#fork--code-and-send-pull-request)
- [Acknowledgement](#acknowledgement)
- [Versioning](#versioning)
- [License](#license)

When to use this
----------------

[](#when-to-use-this)

When you need to determine if a Laravel application instance is available or not and perform some kind of logic, depending on the application's availability.

How to install
--------------

[](#how-to-install)

### For Laravel version 5.6.x

[](#for-laravel-version-56x)

```
composer require aedart/laravel-detector 4.*

```

### For Laravel version 5.5.x

[](#for-laravel-version-55x)

```
composer require aedart/laravel-detector 3.*

```

### For Laravel version 5.4.x

[](#for-laravel-version-54x)

```
composer require aedart/laravel-detector 2.*

```

### For Laravel version 5.3.x

[](#for-laravel-version-53x)

```
composer require aedart/laravel-detector 1.4.*

```

### For Laravel version 5.2.x

[](#for-laravel-version-52x)

```
composer require aedart/laravel-detector 1.3.*

```

This package uses [composer](https://getcomposer.org/). If you do not know what that is or how it works, I recommend that you read a little about, before attempting to use this package.

Quick start
-----------

[](#quick-start)

In you component, use the `ApplicationDetectorTrait` and invoke the `isApplicationAvailable()` method

```
