PHPackages                             mfn/detect\_short\_open\_tag - 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. mfn/detect\_short\_open\_tag

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

mfn/detect\_short\_open\_tag
============================

Scans the given directories / files and reports uses of short open tags

1.3(5y ago)019MITPHPPHP &gt;=7.1CI failing

Since Jul 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mfn/detect_short_open_tag)[ Packagist](https://packagist.org/packages/mfn/detect_short_open_tag)[ RSS](/packages/mfn-detect-short-open-tag/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (6)Used By (0)

Detect the use of short\_open\_tag in your PHP source code
==========================================================

[](#detect-the-use-of-short_open_tag-in-your-php-source-code)

Installation
------------

[](#installation)

`composer require --dev mfn/detect_short_open_tag`

Usage
-----

[](#usage)

```
bin/detect_short_open_tag [-e|--extension php] ...
Scans the given paths for PHP files containing the use of short open tags and reports them.
  -e|--extension    File extensions to scan, defaults to 'php'
               One or more directories to scan fo
  The script will   exit with 0 if no short open tags where found and 1 otherwise.

```

Example output (compatible with Github Actions):

```
::error file=tests/mixed_open_tags.php,line=2::short open tag not allowed
::error file=tests/mixed_open_tags.php,line=4::short open tag not allowed
::error file=tests/only_short_open_tag.php,line=1::short open tag not allowed
::error file=tests/short_open_tag_other_file_extension.foo,line=1::short open tag not allowed

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

2186d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f0d4e7638e419a48dde77f4c481fb1eb2dbe8f5fe913e68e26269ee7e051ade?d=identicon)[mfn](/maintainers/mfn)

---

Top Contributors

[![mfn](https://avatars.githubusercontent.com/u/87493?v=4)](https://github.com/mfn "mfn (7 commits)")

---

Tags

phpanalyzedetectshort\_open\_tag

### Embed Badge

![Health badge](/badges/mfn-detect-short-open-tag/health.svg)

```
[![Health](https://phpackages.com/badges/mfn-detect-short-open-tag/health.svg)](https://phpackages.com/packages/mfn-detect-short-open-tag)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21623.4k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
