Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enikeishik/ufmexample
UFO Framework Example module
https://github.com/enikeishik/ufmexample
Last synced: 12 days ago
JSON representation
UFO Framework Example module
- Host: GitHub
- URL: https://github.com/enikeishik/ufmexample
- Owner: enikeishik
- Created: 2019-01-28T08:03:44.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-18T06:43:57.000Z (almost 6 years ago)
- Last Synced: 2024-11-11T04:41:30.624Z (2 months ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UFO Framework Example module
## Requirements
* PHP >= 7.2
* UFO Framework## Install in UFO Framework based project
Configure composer.json
```json
"repositories": [
{
"type": "git",
"url": "https://github.com/enikeishik/ufmexample.git",
"vendor-alias": "ufmexample"
}
]
...
"require": {
"enikeishik/ufmexample": "dev-master"
}
...
"scripts": {
"post-update-cmd": [
"@php -f loadmodule.php enikeishik/ufmexample"
]
}
```Add route
```php
'/modexample' => [
'title' => 'My example module',
'module' => [
'vendor' => 'Enikeishik',
'name' => 'Ufmexample',
],
]
```Add widget
```php
'path' => [
'place_name' => [
[
'vendor' => 'Enikeishik',
'module' => 'Ufmexample',
'name' => '',
'title' => 'UFO Framework Example module widget',
'text' => '',
'dbless' => false,
'params' => [
'count' => 3,
'filter' => 'marked',
],
]
],
'another_place_name' => [
[
'vendor' => 'Enikeishik',
'module' => 'Ufmexample',
'name' => 'Rtext',
'title' => 'UFO Framework Example module random text widget',
'text' => '',
'params' => [],
]
]
]
```