Skip to content

docs: rewrite README with quick start, usage guide and API reference#1

Open
avoreshin wants to merge 2 commits intoevas-php:mainfrom
avoreshin:docs
Open

docs: rewrite README with quick start, usage guide and API reference#1
avoreshin wants to merge 2 commits intoevas-php:mainfrom
avoreshin:docs

Conversation

@avoreshin
Copy link
Copy Markdown

No description provided.

Comment thread README.md
$this->classCustom(ProfileController::class)
->methodPostfix('Action');
});
```
Copy link
Copy Markdown
Member

@evasyakin evasyakin Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не хватает примера с не кастомным классом, чтобы и класс и метод вычислялись автоматически. Сгенерируй, пожалуйста, в эту доку

Пример из гайда (https://router.evas-php.com/guide/#%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80):

->autoByMethod('/api/v1', function () {
    // автороутинг api
    // /api/v1/user/list -> Controllers\Api\UserController->listAction()
    // /api/v1/user/get -> Controllers\Api\UserController->getAction()
    // /api/v1/user/save -> Controllers\Api\UserController->saveAction()
    // /api/v1/company/list -> Controllers\Api\CompanyController->listAction()
    $this->middleware([CheckAccess::isLogged()])
    ->classPrefix('Controllers\\Api\\')
    ->classPostfix('Controller')
    ->methodPostfix('Action')
    ->default('404json.php'); // обработчик по умолчанию для api
})

@evasyakin
Copy link
Copy Markdown
Member

Ещё можно ссылку на гайд добавить
https://router.evas-php.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants