PHPackages                             denyadzi/luya-module-posts - 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. denyadzi/luya-module-posts

ActiveLuya-module

denyadzi/luya-module-posts
==========================

The posts module provides standard blog/news functionality, including categories, articles, tags, wysiwyg, social networks integration.

51392[2 PRs](https://github.com/denyadzi/luya-module-posts/pulls)PHP

Since Feb 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/denyadzi/luya-module-posts)[ Packagist](https://packagist.org/packages/denyadzi/luya-module-posts)[ RSS](/packages/denyadzi-luya-module-posts/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

 [![LUYA Logo](https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png)](https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png)

Posts Module
============

[](#posts-module)

[![LUYA](https://camo.githubusercontent.com/c30b61934591d3a6fcb8718a93fd61bf840c0abd8a8d49aa0fdd4ab99567bdf4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f776572656425323062792d4c5559412d627269676874677265656e2e737667)](https://luya.io)[![Slack Support](https://camo.githubusercontent.com/3574a291a5d77f541be2a9aebff47cf60ed44274b70f9d90bdf6d0d7f4911892/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f536c61636b2d6c7579616465762d79656c6c6f77677265656e2e737667)](https://slack.luya.io/)

The posts module provides standard blog/news functionality, including categories, articles, tags, wysiwyg, social networks integration.

This module is a fork of the [luya news module](https://github.com/luyadev/luya-module-news)

Stability
---------

[](#stability)

**The module is under development**, so no stable version is currently available yet

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

[](#installation)

For the installation of modules Composer is required.

```
composer require denyadzi/luya-module-posts: ~2.0-dev
```

For multilingual posts, the php *intl* extention is highly recommended to be installed in your system

### Configuration

[](#configuration)

After installation via Composer include the module to your configuration file within the modules section.

```
'modules' => [
    // ...
    'posts' => [
    	'class' => 'luya\posts\frontend\Module',
    	'useAppViewPath' => false, // When enabled the views will be looked up in the @app/views folder, otherwise the views shipped with the module will be used.
    ],
    'postsadmin' => [
        'class' => 'luya\posts\admin\Module',
        'vkAppId' => 1234, /* optional. Needed for Vkontakte autoposts */
        'fbAppId' => 1234, /* optional. Needed for Facebook autoposts */
        'wysiwygOptions' => [ /* various tinymce editor options */
            'height' => '480',
            'menubar' => false,
            'plugins' => 'link image code lists textcolor',
            'toolbar' => 'undo redo | bold underline italic forecolor backcolor image | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat | code'
        ],
    ],
]
```

### Initialization

[](#initialization)

After successfully installation and configuration run the migrate, import and setup command to initialize the module in your project.

1.) Migrate your database.

```
./vendor/bin/luya migrate
```

2.) Import the module and migrations into your LUYA project.

```
./vendor/bin/luya import
```

After adding the persmissions to your group you will be able to edit and add new posts.

Example Views
-------------

[](#example-views)

As the module will try to render a view for the post overview, here is what this could look like this in a very basic way:

#### views/posts/default/index.php

[](#viewspostsdefaultindexphp)

```

Latest Posts
