PHPackages                             awkwardideas/parrot - 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. [Templating &amp; Views](/categories/templating)
4. /
5. awkwardideas/parrot

ActiveLibrary[Templating &amp; Views](/categories/templating)

awkwardideas/parrot
===================

Repeats requested variables back as a placeholder for javascript templates in laravel

045PHP

Since Mar 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/awkwardideas/Parrot)[ Packagist](https://packagist.org/packages/awkwardideas/parrot)[ RSS](/packages/awkwardideas-parrot/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Parrot: Repeats requested variables back as a placeholder for javascript templates in Laravel
=============================================================================================

[](#parrot-repeats-requested-variables-back-as-a-placeholder-for-javascript-templates-in-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/71b4491a140c6fb990f014cd98e8b3f789ae22d39fdfb0ed52cf75b05e82ca75/68747470733a2f2f706f7365722e707567782e6f72672f61776b7761726469646561732f706172726f742f762f737461626c65)](https://packagist.org/packages/awkwardideas/parrot)[![Total Downloads](https://camo.githubusercontent.com/f0574d16d6a6b9ea16233e67409916bb0a752ed63296ea2cbd6dd749cca4b969/68747470733a2f2f706f7365722e707567782e6f72672f61776b7761726469646561732f706172726f742f646f776e6c6f616473)](https://packagist.org/packages/awkwardideas/parrot)[![Latest Unstable Version](https://camo.githubusercontent.com/8b85e189db4e1a05dd7c9bcf04d98aad7bf5345923ab0cc4c878d037f9effc91/68747470733a2f2f706f7365722e707567782e6f72672f61776b7761726469646561732f706172726f742f762f756e737461626c65)](https://packagist.org/packages/awkwardideas/parrot)[![License](https://camo.githubusercontent.com/c2d42cb241636e98967321246ae974b892d54bc712bc3d5d010a36d57e5adc3e/68747470733a2f2f706f7365722e707567782e6f72672f61776b7761726469646561732f706172726f742f6c6963656e7365)](https://packagist.org/packages/awkwardideas/parrot)

Install Via Composer
--------------------

[](#install-via-composer)

```
$ composer require awkwardideas/parrot
```

Add to config/app.php
---------------------

[](#add-to-configappphp)

Under Package Service Providers Add

```
AwkwardIdeas\Parrot\ParrotServiceProvider::class,
```

Under Facades/Class Aliases Add

```
'Parrot' => AwkwardIdeas\Parrot\Facades\Parrot::class,
```

Available Directives
====================

[](#available-directives)

```
@parrot('view.name', ['some' => "", 'data'=>"", 'parrotClass'=>"CustomClass", 'parrotID'=>"templateID"])
```

- Similar to @include blade directive. Provide your own data to be used in the template, you only need to define the high level variables, actual values are not needed. Parrot will mock the values for these variables.
- The parrotClass key can be provided to be output with @parrotClass. This will just echo the class, so it needs to be within a class="" attribute.
- The parrotID key can be provided to be output with @parrotID. This will echo id='parrotIDValue', so that the ID can be optional on your markup.

```
@parrotif('view.name', ['some' => ""])
```

Similar to @includeif blade directive

```
@parrotClass
```

If the template is called with parrot, it will show the $parrotClass variable. A default class of parrotTemplate is output if a custom class is not provided.

```
@parrotID
```

If the template is called with parrot, it will show the $parrotID variable.

```
@onParrot
```

Starts an if case for when parrot is being used. If not being parroted, the template wont render the contained content. An `@else` may be used with `@onParrot`

```
@endOnParrot
```

Ends the if case for `@onParrot`

```
@noParrot
```

Starts an if case for when the template is being render without parrot. If being parroted, the template wont render the contained content. An `@else` may be used with `@noParrot`

```
@endNoParrot
```

Ends the if case for `@endNoParrot`

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17416801?v=4)[Awkward Ideas](/maintainers/awkwardideas)[@awkwardideas](https://github.com/awkwardideas)

### Embed Badge

![Health badge](/badges/awkwardideas-parrot/health.svg)

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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