Download the PHP package grigor/yii2-rest-demo without Composer

On this page you can find all versions of the php package grigor/yii2-rest-demo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-rest-demo

Demo RESTful

Проект для демонстрации нескольких расширений:

yii2-generator

yii2-rest

Установка

Клонируйте репозиторий себе на компьютер или выполните команду

За тем перейдите в папку проекта

Инициализируйте одно из окружений выполнив команду

Выберите 0 или 1 где 0 - девелоперское окружение и 1 - продакшен.

Создайте базу данных и настройте коннект в файле common/config/main-local.php

Выполните миграции

Направьте домены на папки

api/web

backend/web

В папке api/controllers вы найдете конфиг http клиента phpstorm можно поиграться. Открыт один ресурс остальные требуют авторизации OAuth 2.0 см. конфиг.

Для примера я добавил модуль регистрации КОТОРЫЙ В АДМИНКЕ НЕ НУЖЕН, через него можно удобно зарегаться в системе.

В планах покрыть тестами и дополнить инфраструктуру базовыми объектами: http делегатом для контекстов, консольным генератором контекстов и модулей (базовые фалы и структура каталогов). Следите за yii2-project-library

Если вы пользователь laradock и хотите сопрячь два хоста, то вам следует перейти в корень laradock и изменить файл docker-compose.yml, а именно изменить настройки своего сервера добавив алиасы в разделе нетворкс.

Измененные настройки на примере Nginx

За-тем снова сбилдить контейнеры php-fpm и workspace выполнив команду:

Тестировать

Запуск приложения

Запуск тестов api


All versions of yii2-rest-demo with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
yiisoft/yii2 Version ~2.0.14
yiisoft/yii2-bootstrap Version ~2.0.0
yiisoft/yii2-swiftmailer Version ~2.0.0 || ~2.1.0
grigor/yii2-rest Version ^1.0.2
grigor/yii2-project-library Version ~0.0.1
kartik-v/yii2-widget-fileinput Version @dev
kartik-v/yii2-editable Version dev-master
yiisoft/yii2-imagine Version ^2.3
zakurdaev/yii2-editorjs-widget Version *
grigor/yii2-blog-management Version dev-master
grigor/yii2-user-management Version dev-master
grigor/yii2-access-management Version dev-master
grigor/yii2-signup Version dev-master
filsh/yii2-oauth2-server Version ^2.1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package grigor/yii2-rest-demo contains the following files

Loading the files please wait ....