PHPackages                             perchten/wordpress\_attachmentfromimg - 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. [Image &amp; Media](/categories/media)
4. /
5. perchten/wordpress\_attachmentfromimg

ActiveLibrary[Image &amp; Media](/categories/media)

perchten/wordpress\_attachmentfromimg
=====================================

Single function to get wordpress attachment id from an img src

1.0.4(11y ago)026MITPHP &gt;=5.3.0

Since May 27Compare

[ Source](https://github.com/perchten/wordpressAttachmentFromImg)[ Packagist](https://packagist.org/packages/perchten/wordpress_attachmentfromimg)[ Docs](https://github.com/perchten/wordpressAttachmentFromImg)[ RSS](/packages/perchten-wordpress-attachmentfromimg/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/perchten/wordpressAttachmentFromImg).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

3

Last Release

4366d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b8f0c1a2465186a4ff26665a3b9062d5512e53cda847446e1f6040c624112fe?d=identicon)[perchten](/maintainers/perchten)

---

Tags

wordpressimageutilfunctionalattachment

### Embed Badge

![Health badge](/badges/perchten-wordpress-attachmentfromimg/health.svg)

```
[![Health](https://phpackages.com/badges/perchten-wordpress-attachmentfromimg/health.svg)](https://phpackages.com/packages/perchten-wordpress-attachmentfromimg)
```

###  Alternatives

[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

141110.4k6](/packages/stefangabos-zebra-image)[toinekamps/responsive-pics

Responsive Pics is a Wordpress tool for resizing images on the fly.

831.2k](/packages/toinekamps-responsive-pics)

PHPackages © 2026

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