-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from yii-podium/docs
Docs
- Loading branch information
Showing
110 changed files
with
2,993 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Oops, something went wrong.