PHPackages                             vitorccs/yourls-api-save-by-keyword - 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. vitorccs/yourls-api-save-by-keyword

ActiveLibrary[API Development](/categories/api)

vitorccs/yourls-api-save-by-keyword
===================================

YOURLS plugin which updates the long URL of an existing keyword, or creates a new short URL with the supplied keyword

v1.0.1(4y ago)031[2 PRs](https://github.com/vitorccs/yourls-api-save-by-keyword/pulls)GPL-3.0-or-laterPHPPHP &gt;=7.0

Since Jun 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vitorccs/yourls-api-save-by-keyword)[ Packagist](https://packagist.org/packages/vitorccs/yourls-api-save-by-keyword)[ RSS](/packages/vitorccs-yourls-api-save-by-keyword/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

yourls-api-save-by-keyword [![Listed in Awesome YOURLS!](https://camo.githubusercontent.com/34094d1c9744dec407f30c4b523746f7e4a3f1607e176b83083b5d532b81c74c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417765736f6d652d594f55524c532d433541334245)](https://github.com/YOURLS/awesome-yourls/)
==============================================================================================================================================================================================================================================================================================================

[](#yourls-api-save-by-keyword-)

Adds a new action `save_by_keyword` to the [YOURLS API](https://yourls.org/#API).

This action either updates the long URL of an existing keyword, or creates a new short URL with the supplied keyword.

This plugin is useful when you prefer to determine your own keywords (e.g: `user-id-1`, `user-id-2`, `user-joe` etc) rather than letting YOURLS generating random ones (e.g: `a93al`, `n9sj8`, etc) and you need to keep their long URLs always up to date.

With this action, you may save up to three steps: check if an existing keyword already exists, then delete it, and then generating again under the same keyword.

The request parameters are:

```
username
password
action: "save_by_keyword"
format: "json"
url:
keyword:
title:

```

**TIP:** In case you need to allow multiple short URLs for a same long URL, you need to set the parameter `YOURLS_UNIQUE_URLS` to `false`.

```
# config.php
define( 'YOURLS_UNIQUE_URLS', false );
```

How to
======

[](#how-to)

- In `/user/plugins`, create a new folder named `yourls-api-save-by-keyword`
- Drop these files in that directory
- Go to the Plugins administration page and activate the plugin
- Have fun

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

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

1793d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d5d2e771a97ac9dc5a1a1c8a18ec3cf97b5ea7872bfbc0fd62b060545cf6dfa?d=identicon)[vitorccs](/maintainers/vitorccs)

---

Top Contributors

[![vitorccs](https://avatars.githubusercontent.com/u/9891961?v=4)](https://github.com/vitorccs "vitorccs (3 commits)")[![adb-deploy](https://avatars.githubusercontent.com/u/125529745?v=4)](https://github.com/adb-deploy "adb-deploy (1 commits)")

---

Tags

yourls-plugin

### Embed Badge

![Health badge](/badges/vitorccs-yourls-api-save-by-keyword/health.svg)

```
[![Health](https://phpackages.com/badges/vitorccs-yourls-api-save-by-keyword/health.svg)](https://phpackages.com/packages/vitorccs-yourls-api-save-by-keyword)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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