Download the PHP package hounddd/wn-data-plugin without Composer
On this page you can find all versions of the php package hounddd/wn-data-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hounddd/wn-data-plugin
More information about hounddd/wn-data-plugin
Files in hounddd/wn-data-plugin
Package wn-data-plugin
Short Description Display data data in your WinterCMS website
License
Homepage https://gitlab.com/hounddd/wn-plugins/wn-data-plugin
Informations about the package wn-data-plugin
Winter Data plugin
Spatie Laravel Data wrapper for WinterCMS
This package enables the creation of rich data objects which can be used in various ways. Using this package you only need to describe your data once.
Compatibility
PHP | Data plugin v2 | Data plugin v1 |
---|---|---|
8.1+ | ✅ | best to use v2 |
8.0+ | ❌ | ✅ |
Features
A laravel-data specific object is just a regular PHP object that extends from Data:
Since this is just a simple PHP object, it can be initialized as such:
But with this package, you can initialize the data object also with an array:
ℹFollow the official plugin repository: https://github.com/spatie/laravel-data/tree/v1
ℹSee official documentation: https://spatie.be/docs/laravel-data/
Installation
Let assume you're in the root of your wintercms installation
Using composer
Just run this command
Clone
Clone this repo into your winter plugins folder.
⚠ Do not use the publish command. This plugin handles this the way it should be done in WinterCMS, which is why it was created in the first place.
See: https://wintercms.com/docs/v1.2/docs/architecture/using-composer#using-laravel-packages
Make awesome sites with ❄ WinterCMS !