PHPackages                             idist/image\_checker - 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. idist/image\_checker

ActiveComposer-plugin

idist/image\_checker
====================

project used to check type of image

002PHP

Since Aug 14Pushed 7y agoCompare

[ Source](https://github.com/Idist-vnp/unpacking-binary-data)[ Packagist](https://packagist.org/packages/idist/image_checker)[ RSS](/packages/idist-image-checker/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

IDisT\\Image\_Checker
=====================

[](#idistimage_checker)

Package kiểm tra định dạng file ảnh không phụ thuộc vào extension của file

Usage
-----

[](#usage)

- Khởi tạo đối tượng với đầu vào là path local đến file hoặc 1 đường link web, cũng có thể là source/resource.

```
$image = new \IDisT\ImageChecker\Image($path);

```

- Có thể truyền đường dẫn file ảnh ngay từ khi khởi tạo đối tượng Image.
- Nếu không truyền trực tiếp thì có thể sử dụng phương thức download trong Class Image để detech lại ảnh.

```
$image->download($path);

```

- Lấy định dạng thực của ảnh. Hiện chỉ có thể detect được GIF, JPG, PNG, TIFF( một số file ), BMP

```
$image->getType();

```

- Kiểm tra file ảnh có thuộc định dạng mong muốn không

```
$image->isGIF();
$image->isBMP();

```

Mở rộng thêm các định dạng khác, tham khảo tại [File Signature](https://www.garykessler.net/library/file_sigs.html?utm_source=tool.lu)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d70ba55861ba92fd896f1cf0075acd50f3e237753137f388bd8b24a1fcb63d04?d=identicon)[idist-hn](/maintainers/idist-hn)

---

Top Contributors

[![idist-hn](https://avatars.githubusercontent.com/u/21170584?v=4)](https://github.com/idist-hn "idist-hn (5 commits)")[![huynhan147](https://avatars.githubusercontent.com/u/33453729?v=4)](https://github.com/huynhan147 "huynhan147 (1 commits)")

### Embed Badge

![Health badge](/badges/idist-image-checker/health.svg)

```
[![Health](https://phpackages.com/badges/idist-image-checker/health.svg)](https://phpackages.com/packages/idist-image-checker)
```

PHPackages © 2026

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