PHPackages                             tinusg/filament-company-logo-column - 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. tinusg/filament-company-logo-column

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

tinusg/filament-company-logo-column
===================================

A Filament table column that renders a company logo via Logo.dev from a URL or domain

v1.0.0(1mo ago)7988↓25%1MITPHPPHP ^8.2

Since Apr 21Pushed 1mo agoCompare

[ Source](https://github.com/tinusg/filament-company-logo-column)[ Packagist](https://packagist.org/packages/tinusg/filament-company-logo-column)[ Docs](https://github.com/tinusg/filament-company-logo-column)[ RSS](/packages/tinusg-filament-company-logo-column/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Filament Company Logo Column
============================

[](#filament-company-logo-column)

A Filament table column that renders a company logo via [Logo.dev](https://logo.dev) from a URL or bare domain. Supports Filament's built-in tooltip so you can show the company name on hover.

[![Preview](https://raw.githubusercontent.com/tinusg/filament-company-logo-column/main/art/preview.gif)](https://raw.githubusercontent.com/tinusg/filament-company-logo-column/main/art/preview.gif)

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

[](#installation)

```
composer require tinusg/filament-company-logo-column
```

### Configure the Logo.dev publishable key

[](#configure-the-logodev-publishable-key)

Add your Logo.dev publishable key to `config/services.php`:

```
'logo_dev' => [
    'publishable_key' => env('LOGO_DEV_PUBLISHABLE_KEY'),
],
```

Then set the key in your `.env`:

```
LOGO_DEV_PUBLISHABLE_KEY=pk_XXXXXXXXXXXXXXXXX
```

If no key is configured the column renders a neutral placeholder rather than a broken image.

### Optional: publish the package config or views

[](#optional-publish-the-package-config-or-views)

```
php artisan vendor:publish --tag=filament-company-logo-column-config
php artisan vendor:publish --tag=filament-company-logo-column-views
```

Usage
-----

[](#usage)

```
use TinusG\FilamentCompanyLogoColumn\CompanyLogoColumn;

CompanyLogoColumn::make('website')
    ->tooltip(fn ($record) => $record->name)
```

The column state can be either a full URL (`https://example.com/about`) or a bare FQDN (`example.com`). A leading `www.` is stripped automatically.

### Explicit domain

[](#explicit-domain)

When the column state is not the domain itself, pass a closure:

```
CompanyLogoColumn::make('logo')
    ->domain(fn ($record) => $record->primary_url)
    ->tooltip(fn ($record) => $record->name)
```

### Sizing and style

[](#sizing-and-style)

```
CompanyLogoColumn::make('website')
    ->size(48)
    ->format('webp')
    ->theme('dark')
    ->fallback('monogram')
    ->lazy()
    ->tooltip(fn ($record) => $record->name)
```

### Example Filament resource snippet

[](#example-filament-resource-snippet)

```
use Filament\Tables\Table;
use TinusG\FilamentCompanyLogoColumn\CompanyLogoColumn;

public static function table(Table $table): Table
{
    return $table
        ->columns([
            CompanyLogoColumn::make('website')
                ->label('')
                ->tooltip(fn ($record) => $record->name),

            TextColumn::make('name')
                ->searchable()
                ->sortable(),

            TextColumn::make('website')
                ->url(fn ($record) => $record->website, shouldOpenInNewTab: true),
        ]);
}
```

API
---

[](#api)

MethodDescriptionDefault`domain(string|Closure|null)`Override the source domain/URL (otherwise uses column state)`null` (use state)`size(int|Closure)`Rendered square size in pixels`40``format(string|Closure)`Image format (`webp`, `png`, `jpg`)`webp``theme(string|Closure)``light` or `dark` background variant`light``fallback(string|Closure)`Logo.dev fallback mode (e.g. `monogram`)`monogram``lazy(bool|Closure)`Adds `loading="lazy"` to the image tag`true``tooltip(...)`Inherited Filament method, use for the company name,All defaults can be changed globally in `config/filament-company-logo-column.php`.

How it works
------------

[](#how-it-works)

- Extends `Filament\Tables\Columns\Column` and renders a custom Blade view
- Normalizes the input value (URL or FQDN) via a small `HostnameNormalizer` helper, strips `www.`, rejects IPs and values without a TLD
- Builds an `https://img.logo.dev/{domain}` URL using the publishable key and the column's size/format/theme/fallback
- Requests the image at 2× the render size (capped at 512px) so it stays crisp on HiDPI displays
- Falls back to a neutral placeholder `` if the value cannot be parsed or no key is configured
- Relies on Logo.dev's built-in monogram fallback for unknown domains, no Google favicon fallback, no local proxying

Design choices
--------------

[](#design-choices)

- **Base `Column`, custom view.** A dedicated Blade view keeps the markup easy to override via `vendor:publish` without subclassing.
- **Domain-first API.** The column accepts any string that looks like a URL or FQDN, so it works with typical `website` columns without extra plumbing.
- **Stateless rendering.** No caching, no image proxy, no local storage, Logo.dev and the browser cache are sufficient for admin tables.
- **Tooltip delegated to Filament.** The column does not introduce its own hover UI; `->tooltip(...)` is the idiomatic way to show the company name.
- **Graceful degradation.** Missing key, missing state, invalid hostname, and IP addresses all resolve to the same neutral placeholder instead of a broken image.

Future enhancements
-------------------

[](#future-enhancements)

- Custom placeholder views (e.g. render initials from the company name)
- Initials fallback styling generated locally for domains Logo.dev cannot resolve
- Optional server-side domain resolution (e.g. HEAD request to follow redirects before querying Logo.dev)
- `clickable()` helper that wraps the logo in a link to the original URL
- First-class dark-mode auto-switching via `prefers-color-scheme`
- Support for passing an explicit `alt` / tooltip resolver without relying on Filament's generic tooltip

Requirements
------------

[](#requirements)

- PHP 8.2+
- Filament 5.x
- A Logo.dev account and publishable key

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance90

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

49d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b8d441c296475afcea898f59f873cce4d86f595085c4d1af5efe0cb3ea138e99?d=identicon)[tinusg](/maintainers/tinusg)

---

Top Contributors

[![tinusg](https://avatars.githubusercontent.com/u/2152919?v=4)](https://github.com/tinusg "tinusg (2 commits)")

---

Tags

laravelfilamentlogocompanycolumnlogo.dev

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tinusg-filament-company-logo-column/health.svg)

```
[![Health](https://phpackages.com/badges/tinusg-filament-company-logo-column/health.svg)](https://phpackages.com/packages/tinusg-filament-company-logo-column)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[promethys/revive

A 'RecycleBin' page where users can restore or delete permanently soft-deleted models.

162.5k](/packages/promethys-revive)[a2insights/filament-saas

Filament Saas for A2Insights

171.5k](/packages/a2insights-filament-saas)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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