PHPackages                             biohzrdmx/bimini-php - 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. biohzrdmx/bimini-php

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

biohzrdmx/bimini-php
====================

Easily check and retrieve BIMI records from a host

1.0(1y ago)09MITPHPPHP &gt;=8.1

Since Jul 19Pushed 1y ago2 watchersCompare

[ Source](https://github.com/biohzrdmx/bimini-php)[ Packagist](https://packagist.org/packages/biohzrdmx/bimini-php)[ RSS](/packages/biohzrdmx-bimini-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

bimini-php
==========

[](#bimini-php)

Easily check and retrieve BIMI records from a host

### Basic usage

[](#basic-usage)

First require `biohzrdmx/bimini-php` with Composer.

Then create a `Bimini` instance; for that you must pass an `StorageInterface` implementation and this package includes a simple file system storage adapter named `FileSystemStorage`:

```
$path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'output';
$storage = new FileSystemStorage($path);
$bimini = new Bimi($storage);
```

The `FileSystemStorage` implementation uses a local directory to store the result of the DNS record queries, to minimize network requests; you may also write your own storage adapters for database, Redis, Memcached or any other persistance mechanism, just implement the `StorageInterface` methods.

Now that you have a `Bimini` instance you can query any host, for example you can check for the existence of a record with the `hasRecord` method:

```
$ret = $bimini->hasRecord('example.com');
```

Or retrieve the complete record with the `getRecord` method:

```
$record = $bimini->getRecord('example.com');
```

Once you have the record you can check its properties with the `has-` methods (`hasVersion`, `hasLogo`, `hasCertificate`) or retrieve the actual properties with the `get-` methods (`getVersion`, `getLogo`, `getCertificate`), for example:

```
if ( $record->hasLogo() ) {
    $url = $record->getLogo();
}
```

Actually there is only one BIMI version, so the `getVersion` method should always return `BIMI1` for a valid record.

Both `getLogo` and `getCertificate` methods return a URL to the respective resource (the SVG image or the PEM file). The library does not validate these URLs, it only returns the value stored in the BIMI record; it's up to you if you want to render the SVG file or check the VMC certificate.

### Licensing

[](#licensing)

This software is released under the MIT license.

Copyright © 2024 biohzrdmx

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

### Credits

[](#credits)

**Lead coder:** biohzrdmx [github.com/biohzrdmx](http://github.com/biohzrdmx)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

666d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44b968bb45d47a621ce8e81c422ef4c126316a702156a7faf96df75610cc0d45?d=identicon)[biohzrdmx](/maintainers/biohzrdmx)

---

Top Contributors

[![biohzrdmx](https://avatars.githubusercontent.com/u/2053303?v=4)](https://github.com/biohzrdmx "biohzrdmx (1 commits)")

---

Tags

bimicomposer-libraryphp

### Embed Badge

![Health badge](/badges/biohzrdmx-bimini-php/health.svg)

```
[![Health](https://phpackages.com/badges/biohzrdmx-bimini-php/health.svg)](https://phpackages.com/packages/biohzrdmx-bimini-php)
```

###  Alternatives

[obs/esdk-obs-php

OBS PHP SDK

58121.1k3](/packages/obs-esdk-obs-php)

PHPackages © 2026

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