Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bnomei/kirby3-field-ecco
Kirby 3 Field Method to ecco strings based on boolval of Field
https://github.com/bnomei/kirby3-field-ecco
boolean echo kirby3 kirby3-plugin
Last synced: 7 days ago
JSON representation
Kirby 3 Field Method to ecco strings based on boolval of Field
- Host: GitHub
- URL: https://github.com/bnomei/kirby3-field-ecco
- Owner: bnomei
- License: mit
- Created: 2018-08-09T10:16:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-30T16:35:14.000Z (about 1 year ago)
- Last Synced: 2024-11-02T10:11:26.740Z (14 days ago)
- Topics: boolean, echo, kirby3, kirby3-plugin
- Language: PHP
- Homepage:
- Size: 1.73 MB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Kirby 3 Field Ecco
![Release](https://flat.badgen.net/packagist/v/bnomei/kirby3-field-ecco?color=ae81ff)
![Downloads](https://flat.badgen.net/packagist/dt/bnomei/kirby3-field-ecco?color=272822)
[![Twitter](https://flat.badgen.net/badge/twitter/bnomei?color=66d9ef)](https://twitter.com/bnomei)Kirby 3 Field Method to ecco strings based on boolval/isEmpty of a Field.
## Commercial Usage
>
> Support open source!
> This plugin is free but if you use it in a commercial project please consider to sponsor me or make a donation.
> If my work helped you to make some cash it seems fair to me that I might get a little reward as well, right?
> Be kind. Share a little. Thanks.
> ‐ Bruno
>| M | O | N | E | Y |
|---|----|---|---|---|
| [Github sponsor](https://github.com/sponsors/bnomei) | [Patreon](https://patreon.com/bnomei) | [Buy Me a Coffee](https://buymeacoff.ee/bnomei) | [Paypal dontation](https://www.paypal.me/bnomei/15) | [Hire me](mailto:[email protected]?subject=Kirby) |## Installation
- unzip [master.zip](https://github.com/bnomei/kirby3-field-ecco/archive/master.zip) as folder `site/plugins/kirby3-field-ecco` or
- `git submodule add https://github.com/bnomei/kirby3-field-ecco.git site/plugins/kirby3-field-ecco` or
- `composer require bnomei/kirby3-field-ecco`## Usage
in php code
```php
echo $page->myBoolField()->ecco('Yes please. 👍', 'OMG NO! 👎');
echo $page->selectField()->ecco('has a value', 'is empty');
```or in blueprint template language
```yml
{{ page.myBoolField.ecco('Yes please. 👍', 'OMG NO! 👎') }}
{{ page.selectField.ecco('has a value', 'is empty') }}
```## Disclaimer
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please [create a new issue](https://github.com/bnomei/kirby3-field-ecco/issues/new).
## License
[MIT](https://opensource.org/licenses/MIT)
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.