PHPackages                             foobar/foobar8 - 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. foobar/foobar8

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

foobar/foobar8
==============

foo bar for PHP 8\* only

1.0(1y ago)011UnlicensePHP ^8

Since Aug 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dakujem/foobar8)[ Packagist](https://packagist.org/packages/foobar/foobar8)[ RSS](/packages/foobar-foobar8/feed)WikiDiscussions trunk Synced 1mo ago

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

Foobar for PHP 8
================

[](#foobar-for-php-8)

Serves package testing purposes only... obviously.

> 💿 `composer require foobar/foobar8`

Usage
-----

[](#usage)

When migrating from a package to another, it may be useful to know that composer schema (i.e. `composer.json`) may contain `replace` property.

The schema of this package is (abridged):

```
{
  "name": "foobar/foobar8",
  "require": {
    "php": "^8"
  },
  "replace": {
    "foobar/foobar7": "*"
  }
}
```

Where `replace` indicates that `foobar/foobar8` completely replaces `foobar/foobar7`, allowing Composer to consider `foobar/foobar8` as a drop-in replacement for `foobar/foobar7`.

Prop `replace` creates an implicit `conflict` rule, and is also more useful than `provide`, which serves different purpose (to implement virtual interfaces).

Read the Composer schema docs here: [Composer `replace`](https://getcomposer.org/doc/04-schema.md#replace).

Migration
---------

[](#migration)

Prerequisites (or current state):

- project running on PHP 7
- `foobar/foobar7` installed (i.e. required by the project)

Migration:

1. switch to PHP 8
2. `composer require foobar/foobar8`
3. (optional) remove `foobar/foobar7` requirement

This will satisfy all the other libraries that depend on `foobar/foobar7`, too, not just the project itself.

One should end up with something like this:

```
{
  "type": "project",
  "require": {
    "php": "^8",
    "foobar/foobar7": "^1",
    "foobar/foobar8": "^1"
  }
}
```

Useful when reimplementing older libraries or providing backport versions for older architectures.

It may be useful in other scenarios too, when reimplementing third party libraries.
An example would be a library that is slow to be maintained, but a serious flaw is found. One may source and distribute the patch himself and only replace a certain version. Once the third party package is updated, it will be used again, without need for changes to the consuming project.

> Note that the replacing works not only across PHP versions. One may replace any package, or even selected versions of a package.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

649d ago

### Community

Maintainers

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

---

Top Contributors

[![dakujem](https://avatars.githubusercontent.com/u/443067?v=4)](https://github.com/dakujem "dakujem (5 commits)")

### Embed Badge

![Health badge](/badges/foobar-foobar8/health.svg)

```
[![Health](https://phpackages.com/badges/foobar-foobar8/health.svg)](https://phpackages.com/packages/foobar-foobar8)
```

###  Alternatives

[cevin/geohash

Geohash library for php

192.0k](/packages/cevin-geohash)

PHPackages © 2026

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