Skip to content

Commit

Permalink
Merge pull request #3 from yii-podium/docs
Browse files Browse the repository at this point in the history
Docs
  • Loading branch information
Bizley authored Oct 3, 2020
2 parents f3d5e7f + 6dfa8ce commit ffe5e50
Show file tree
Hide file tree
Showing 110 changed files with 2,993 additions and 258 deletions.
40 changes: 30 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,37 @@
# Yii 2 Podium API

![Build](https://github.com/yii-podium/yii2-api/workflows/Tests/badge.svg)
![Latest Stable Version](https://img.shields.io/packagist/v/yii-podium/yii2-api.svg)
[![Total Downloads](https://img.shields.io/packagist/dt/yii-podium/yii2-api.svg)](https://packagist.org/packages/yii-podium/yii2-api)
![License](https://img.shields.io/packagist/l/yii-podium/yii2-api.svg)

**[Work In Progress]**
Yii 2 Forum Engine Module API

Podium is divided into components (not to be mistaken by Yii's components although these are implemented as them)
that take care of main aspects of forum structure. Each component is responsible for actions (again, not Yii's
actions) concerning its aspect, and these actions are implemented as services that operate on repositories. As for the
repositories - these are objects that know about the storage of data they can handle and how to work with them.
## Installation

There are some rules:
- only repositories know about the storage,
- each repository knows how to handle one single storage unit and not more,
- components operate on repositories, not on identifiers.
Run console command

When API is ready, I'll start preparing the client.
```
composer require yii-podium/yii2-api
```

Or add the package to your `composer.json` file:

```
{
"require": {
"yii-podium/yii2-api": "^0.1"
}
}
```

then run `composer update`.

## Configuration And Usage

Please refer to the [Documentation](https://github.com/yii-podium/yii2-api/blob/master/docs/).

## Podium Packages

- Yii 2 Podium Web Client (WIP)
- Yii 2 Podium Rest Client (WIP)
35 changes: 35 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Yii 2 Podium API Docs

- [Installation](en/installation.md)

## Components

- [Account](en/account.md)
- [Category](en/category.md)
- [Forum](en/forum.md)
- [Group](en/group.md)
- [Logger](en/logger.md)
- [Member](en/member.md)
- [Message](en/message.md)
- [Post](en/post.md)
- [Rank](en/rank.md)
- [Thread](en/thread.md)

Podium is an [Yii 2](https://www.yiiframework.com/) forum [module](https://www.yiiframework.com/doc/guide/2.0/en/structure-modules).
This very package is only the Podium API, so if you are looking for a full working forum experience head over to
[Yii 2 Podium Web Client]() or [Yii 2 Podium Rest Client](). On top of everything this package is abstract in terms of
repository storage, which means that there are no implementations of repository interfaces - if you are looking for
Active Record database storage go to [Yii 2 Active Record Podium API]().

Podium is divided into components (not to be mistaken by Yii's [components](https://www.yiiframework.com/doc/guide/2.0/en/structure-application-components)
although these are implemented as them) that take care of main aspects of forum structure. Each component is responsible
for actions (again, not Yii's [actions](https://www.yiiframework.com/doc/guide/2.0/en/structure-controllers#actions))
concerning its aspect, and these actions are implemented as services that operate on repositories. As for the
repositories - these are objects that know about the storage of data they can handle and how to work with them.

Podium data structure is as following:

1. Categories.
2. Forums.
3. Threads.
4. Posts.
Loading

0 comments on commit ffe5e50

Please sign in to comment.