PHPackages                             designbycode/business-name-generator - 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. designbycode/business-name-generator

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

designbycode/business-name-generator
====================================

The Business Name Generator is a PHP class that generates business names based on a combination of adjectives and nouns. It provides a flexible and customizable way to generate business names that can be used for various purposes.

v2.1.0(1y ago)1218[1 PRs](https://github.com/designbycode/business-name-generator/pulls)1MITPHPPHP ^8.1|^8.2|^8.3

Since Jun 7Pushed 1y agoCompare

[ Source](https://github.com/designbycode/business-name-generator)[ Packagist](https://packagist.org/packages/designbycode/business-name-generator)[ Docs](https://github.com/designbycode/business-name-generator)[ GitHub Sponsors](https://github.com/designbycode)[ RSS](/packages/designbycode-business-name-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (3)Versions (10)Used By (1)

Business Name Generator
=======================

[](#business-name-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/62c0019f6ef4ee65a81c211c4d1a73fbbaba16b52f5896507cece5183a256569/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657369676e6279636f64652f627573696e6573732d6e616d652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/designbycode/business-name-generator)[![Tests](https://camo.githubusercontent.com/f39ab051607671e724cf562ba34206d946a5f04afc7b132fa0314945e0cf893a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64657369676e6279636f64652f627573696e6573732d6e616d652d67656e657261746f722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/designbycode/business-name-generator/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/8fe84b93c2665ae5f8cc210e922ad2ab93786e5379e09e4c2760c6ca4b1a7a31/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657369676e6279636f64652f627573696e6573732d6e616d652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/designbycode/business-name-generator)

Overview
--------

[](#overview)

The Business Name Generator is a PHP class that generates business names based on a combination of adjectives and nouns. It provides a flexible and customizable way to generate business names that can be used for various purposes.

Business Name Generator Documentation
-------------------------------------

[](#business-name-generator-documentation)

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

[](#installation)

You can install the package via composer:

```
composer require designbycode/business-name-generator
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
require 'vendor/autoload.php';

use Designbycode\BusinessNameGenerator\BusinessNameGenerator;
use Designbycode\BusinessNameGenerator\Nouns;
use Designbycode\BusinessNameGenerator\Adjectives;

// Create a new BusinessNameGenerator instance
$generator = new BusinessNameGenerator();

// Generate a business name using default adjectives and funny nouns
$businessName = $generator->generate('default', 'funny')->first();
echo $businessName;  // Example output: "Innovative Banana"
```

Generating Business Names
-------------------------

[](#generating-business-names)

To generate business names, use the generate() method:

```
$generator->generate();
```

This will generate an array of business names based on the adjectives and nouns set earlier. You can access the generated names using the get() method:

```
$names = $generator->get();
```

Customizing the Generation Process
----------------------------------

[](#customizing-the-generation-process)

You can customize the generation process by specifying the category of adjectives and nouns to use. For example:

```
$generator->generate('funny', 'playful');
```

> This will generate business names using funny adjectives and playful nouns.

Retrieving Specific Names
-------------------------

[](#retrieving-specific-names)

You can retrieve specific names from the generated list using the following methods:

```
$last_name = $generator->last(); // returns the last generated business name
$first_name = $generator->first(); // returns the first generated business name
$random_name = $generator->random(); // returns a random generated business name
```

You can also retrieve an array of random names using the randomArray() method:

```
$random_names = $generator->randomArray(3); // returns an array of 3 random generated business names
```

Converting to String
--------------------

[](#converting-to-string)

You can convert the generated names to a string using the toString() method:

```
$names_string = $generator->toString(', '); // returns a string representation of the generated business names, separated by commas
```

### Setting Adjectives and Nouns

[](#setting-adjectives-and-nouns)

You can set the adjectives and nouns to use for generating business names using the following methods. You can also provide your own lists of adjectives and nouns:

```
$businessName = new BusinessNameGenerator();
$businessName
    ->setAdjectives(['Innovative', 'Creative', 'Dynamic'])
    ->setNouns(['Solutions', 'Technologies', 'Ventures'])
    ->generate()
    ->first()

echo $businessName;  // Example output: "Creative Solutions"
```

Alternatively, you can pass an array of adjectives and nouns to the constructor:

```
$businessName = new BusinessNameGenerator(['Innovative', 'Creative', 'Dynamic'], ['Solutions', 'Technologies', 'Ventures']);

$businessName->generate()->first() // Example output: "Creative Solutions"
```

### Using Specific Categories

[](#using-specific-categories)

You can generate business names based on specific categories of adjectives and nouns:

```
$generator = new BusinessNameGenerator();

// Generate a business name using playful adjectives and color-related nouns
$businessName = $generator->generate('playful', 'color');
echo $businessName;  // Example output: "Cheerful Blue"
```

Adjective and Noun Categories
-----------------------------

[](#adjective-and-noun-categories)

### Adjective Categories

[](#adjective-categories)

- default: Standard business-related adjectives.
- funny: Whimsical and humorous adjectives.
- playful: Light-hearted and playful adjectives.
- color: Color-related adjectives.
- all: A combination of all the above categories.

### Noun Categories

[](#noun-categories)

- default: Standard business-related nouns.
- funny: Whimsical and humorous nouns.
- playful: Light-hearted and playful nouns.
- color: Color-related nouns.
- all: A combination of all the above categories.

### Extending the Lists

[](#extending-the-lists)

If you want to extend the list of adjectives or nouns, you can create your own classes that implement the HasGeneratorLists interface.

```
namespace YourNamespace;

use Designbycode\BusinessNameGenerator\HasGeneratorLists;

class CustomAdjectives implements HasGeneratorLists
{
    public function default(): array
    {
        return ["Energetic", "Bold", "Brilliant"];
    }

    public function funny(): array
    {
        return ["Zany", "Wacky", "Goofy"];
    }

    public function playful(): array
    {
        return ["Bouncy", "Jovial", "Perky"];
    }

    public function color(): array
    {
        return ["Crimson", "Amber", "Sapphire"];
    }
}
```

Then use your custom class with the BusinessNameGenerator:

```
use Designbycode\BusinessNameGenerator\BusinessNameGenerator;
use YourNamespace\CustomAdjectives;
use Designbycode\BusinessNameGenerator\Nouns;

$generator = new BusinessNameGenerator((new CustomAdjectives())->default(), (new Nouns())->default());

$businessName = $generator->generate('default', 'default');
echo $businessName;  // Example output: "Energetic Solutions"
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Claude Myburgh](https://github.com/claudemyburgh)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

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

Every ~6 days

Total

8

Last Release

659d ago

Major Versions

v1.2.2 → v2.0.02024-06-17

PHP version history (2 changes)v1.0.0PHP ^8.1

v1.2.2PHP ^8.1|^8.2|^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/65820d809cbae9f6fa2f5984f3c584e97b8fad0824590cf23e36cc8d85166cb2?d=identicon)[claudemyburgh](/maintainers/claudemyburgh)

---

Top Contributors

[![claudemyburgh](https://avatars.githubusercontent.com/u/6057076?v=4)](https://github.com/claudemyburgh "claudemyburgh (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

designbycodebusiness-name-generator

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/designbycode-business-name-generator/health.svg)

```
[![Health](https://phpackages.com/badges/designbycode-business-name-generator/health.svg)](https://phpackages.com/packages/designbycode-business-name-generator)
```

###  Alternatives

[shaozeming/aliyun-sts

基于阿里云openapi系列接口中STS最新版本的SDK进行封装的composer package

2021.0k1](/packages/shaozeming-aliyun-sts)

PHPackages © 2026

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