PHPackages                             macelux/laravel-showable-resource - 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. macelux/laravel-showable-resource

ActiveLibrary[API Development](/categories/api)

macelux/laravel-showable-resource
=================================

Package to add API resource property or atttibute based on some conditions

1.0.0(3y ago)02[4 PRs](https://github.com/macelux/laravel-showable-resource/pulls)MITPHPPHP ^8.0

Since Oct 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/macelux/laravel-showable-resource)[ Packagist](https://packagist.org/packages/macelux/laravel-showable-resource)[ Docs](https://github.com/macelux/laravel-showable-resource)[ RSS](/packages/macelux-laravel-showable-resource/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (6)Used By (0)

Package to add API resource property or atttibute based on some conditions
==========================================================================

[](#package-to-add-api-resource-property-or-atttibute-based-on-some-conditions)

[![Latest Version on Packagist](https://camo.githubusercontent.com/afa0ae8195213f231e977ac163144ce7f113e6e5c099249e66db114dd96c9c03/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6163656c75782f6c61726176656c2d73686f7761626c652d7265736f757263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/macelux/laravel-showable-resource)[![GitHub Tests Action Status](https://camo.githubusercontent.com/6b20899bfe07add978e25c9751c3c7b904a473ec092327688aa0decab033802d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d6163656c75782f6c61726176656c2d73686f7761626c652d7265736f757263652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/macelux/laravel-showable-resource/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/bebf5e61dc571ae8878d9139f908707f248d90a68fdc6301da519960d08fbe96/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d6163656c75782f6c61726176656c2d73686f7761626c652d7265736f757263652f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/macelux/laravel-showable-resource/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c1e49c18dffc3e1f6dac382991bc07fc0a1a4747a38e643cb62d06fa47aab149/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6163656c75782f6c61726176656c2d73686f7761626c652d7265736f757263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/macelux/laravel-showable-resource)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/05f172e8e7342c7217160c9243be1b275ac346ca198b2fbe7cd1cb74dfaa7aae/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d73686f7761626c652d7265736f757263652e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-showable-resource)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require macelux/laravel-showable-resource
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-showable-resource-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-showable-resource-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-showable-resource-views"
```

Usage
-----

[](#usage)

```
$showable = new Showable\Showable();
echo $showable->echoPhrase('Hello, Showable!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Macdonald Chika](https://github.com/macelux)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

1307d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f3e30a9b9c85a2df83ce9dd8ba51a801065a65d2c312eb2bc19530cd5bab921?d=identicon)[macelux](/maintainers/macelux)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![macelux](https://avatars.githubusercontent.com/u/25037114?v=4)](https://github.com/macelux "macelux (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laravelmaceluxlaravel-showable-resource

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/macelux-laravel-showable-resource/health.svg)

```
[![Health](https://phpackages.com/badges/macelux-laravel-showable-resource/health.svg)](https://phpackages.com/packages/macelux-laravel-showable-resource)
```

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.0k7.8M57](/packages/dedoc-scramble)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)

PHPackages © 2026

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