PHPackages                             farshadff/zaya - 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. farshadff/zaya

ActiveLibrary

farshadff/zaya
==============

zaya

1.3.0(1y ago)2327MITPHPPHP ^7.1|^8.0

Since Dec 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/farshadff/zaya)[ Packagist](https://packagist.org/packages/farshadff/zaya)[ Docs](https://github.com/farshadff/zaya)[ RSS](/packages/farshadff-zaya/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (7)Used By (0)

Zaya link shortener sdk for laravel
===================================

[](#zaya-link-shortener-sdk-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8fa03ceb1040f4d9b5012e0e0ef643e592c962544ebfba6a314b80bceb3f30f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6661727368616466662f7a6179612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/farshadff/zaya)[![Total Downloads](https://camo.githubusercontent.com/330bdd8c877c83663b6c2f0a1f4fdfc585929ba9103380ea4636c1f77af9ed5e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6661727368616466662f7a6179612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/farshadff/zaya)[![GitHub Actions](https://github.com/farshadff/zaya/actions/workflows/main.yml/badge.svg)](https://github.com/farshadff/zaya/actions/workflows/main.yml/badge.svg)

using this package you can easily implement the zaya.io link shortener in your laravel application

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

[](#installation)

You can install the package via composer:

```
composer require farshadff/zaya
```

then add the development api key to your env :

```
ZAYA_API_KEY=W******************************7

```

Usage
-----

[](#usage)

you can use 4 facades in this package for different functionalities in this package

```
ZayaLinkFacade::
ZayaSpaceFacade::
ZayaDomainFacade::
ZayaAccountFacade::
```

the list of available methods for v.1.0.0 :

Available Methods For Link
--------------------------

[](#available-methods-for-link)

```
ZayaLinkFacade::create($yourlink,$params);
ZayaLinkFacade::list(); //this will give you all links you have
ZayaLinkFacade::get($id); //this will give you detail of a given link
ZayaLinkFacade::update($id,$link); //this will update a link for a given id
ZayaLinkFacade::delete($id); //this will remove a link by a given id
```

Available Methods For Space :
-----------------------------

[](#available-methods-for-space-)

```
ZayaSpaceFacade::create($name,$color); //this will create an space for you :https://zaya.io/developers/spaces?section=create#create
ZayaSpaceFacade::list(); //this will give you all spaces you have
ZayaSpaceFacade::get($id); //this will give detail of a given space
ZayaSpaceFacade::update($id,$name,$color); //this will update an space for a given id
ZayaSpaceFacade::delete($id); //this will remove an space by a given id
```

Available Methods for Domain :
------------------------------

[](#available-methods-for-domain-)

```
ZayaDomainFacade::list(); //this will give you all domains you have
ZayaDomainFacade::create($name,$index,$notFound); //this will create a domain for you :https://zaya.io/developers/domains?section=create#create
ZayaDomainFacade::get($id); //this will give detail of a given domain
ZayaDomainFacade::update($id,$name,$index_page = null,$not_found_page = null); //this will update a domain for a given id note that 2 params at last are optional
ZayaDomainFacade::delete($id); //this will remove a domain by a given id
```

Available Methods for Account :
-------------------------------

[](#available-methods-for-account-)

```
ZayaAccountFacade::detail(); //this will give you account information
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [farshad](https://github.com/farshadff)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~131 days

Total

5

Last Release

724d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

zayafarshadff

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/farshadff-zaya/health.svg)

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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