PHPackages                             nemorize/indexnow - 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. [API Development](/categories/api)
4. /
5. nemorize/indexnow

AbandonedArchivedLibrary[API Development](/categories/api)

nemorize/indexnow
=================

PHP library for submitting website URLs using IndexNow to search engines.

0.0.1(2y ago)92.6k1MITPHPPHP &gt;=8.1

Since Jul 31Pushed 2y ago1 watchersCompare

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

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

php-indexnow
============

[](#php-indexnow)

**php-indexnow** is a PHP library for [IndexNow](https://indexnow.org) API.

Example usage
-------------

[](#example-usage)

```
composer require nemorize/indexnow
```

```
$indexnow = new \Nemorize\Indexnow\Indexnow();
$indexnow->setKey('fc1e3ad82010475381daf9846e627fdd');
$indexnow->submit('https://example.com/url-changed');
$indexnow->submit([
    'https://example.com/url-changed',
    'https://example.com/url-changed-2'
]);
```

Specification
-------------

[](#specification)

### setHost

[](#sethost)

```
Indexnow::setHost (string $host): void;
```

You can change the hostname of the API. If you don't set the hostname, the default host is `api.indexnow.org`.

### getHost

[](#gethost)

```
Indexnow::getHost (): string;
```

Returns the hostname of the API.

### setKey

[](#setkey)

```
Indexnow::setKey (string $key): void;
```

You can change the key of the API.

### getKey

[](#getkey)

```
Indexnow::getKey (): string;
```

Returns the key of the API.

### setKeyLocation

[](#setkeylocation)

```
Indexnow::setKeyLocation (?string $keyLocation): void;
```

You can change the key location of the API. If you want to unset the key location, you can set `null`.

### getKeyLocation

[](#getkeylocation)

```
Indexnow::getKeyLocation (): ?string;
```

Returns the key location of the API.

### submit

[](#submit)

```
Indexnow::submit (string|array $url, array $guzzleOptions = null): void;
```

You can submit a URL to the API. If you use `$url` as an array, it will submit multiple URLs using JSON request. `$guzzleOptions` is an array of options for [Guzzle](https://docs.guzzlephp.org/en/stable/quickstart.html#making-a-request).

#### Exceptions

[](#exceptions)

`submit` method throws exceptions if some errors occur. If the API throws well-known non-20x response codes, it will throw the following exceptions that extend `IndexnowException`. Any other errors will throw `GuzzleException`.

- `BadRequestException`
- `ForbiddenException`
- `TooManyRequestsException`
- `UnprocessableEntityException`

License
-------

[](#license)

MIT License

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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

1022d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12807795da10cb0139c1cc631cb308d9ed8a4a0d48348c733266bfdddb580ed5?d=identicon)[nemorize](/maintainers/nemorize)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/nemorize-indexnow/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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