PHP Classes

File: README-RU.md

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy   Silex MVC Blog   README-RU.md   Download  
File: README-RU.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Silex MVC Blog
MVC based blog using on the Silex micro-framework
Author: By
Last change: Update config
Date: 7 years ago
Size: 7,464 bytes
 

Contents

Class file image Download

silex-mvc

??????? ????????? ??????????? ?????? ?????????????? - MVC ?? ???? SILEX (PHP ?????-??????????, ?????????? ?? ?????? Symfony2 ???????????). ????????? ???? ???? ???? ???????????? ? ??????? GitHub (silex-enhanced). ? ????????????? ?? SILEX ????? ????????????? ?????. ??????? ????????? ?????????? ????????? ??? ?? "Windows" ? ??? ??????? Nginx.

???????? ?????????????? ??????????:

  • ????????? ????????? ??????? ?????????? ?????????? ??????;
  • ??????????? ? ??????? ???????????????? ??????, ????????????? ? `app/Resources/?onfig`;
  • ???????? ??? ??? ??? ??? ?????????? ??????????;
  • ? ??????? ??????????? ?????????? ????? ????????? ?????? ????????? ?????? (??. ???????? ?? `app/Console/scripts/orm/schema_create.bat`);
  • ??? ??????? ? ??????? ??????????? ?????????? ??????????? ?????? ? ???????? UBKI;
  • ??????????? ??????????? ??? ???? ??????: ??????????, ???????;
  • ?????????????? ??????? ???????????, ?????????????? ? ??????????? ?????????????;
  • ? ?? ??????? ??? ???????????? ? ???????????????? ???????. ????????????? (login=admin; pass=foo) User (login=user; pass=foo);
  • ?????????? ?? ???? SqlLite `app/Resources/db/app.db`;
  • ?????? ? ?? ?????????????? ? ??????? Doctrine(DBAL, ORM) `vendor/doctrine` ? PHP ActiveRecord `library/AR`;
  • ??????????? ??????????? ?????? ?????? ?? ????????? ? ??????? ?????????? Pagerfanta `library/Pagerfanta`;
  • ???????????? ???????????? Twig `vendor/twig`;
  • ??? ?????? ? ?????? ???????????? ?????????? SwiftMailer `vendor/swiftmailer`;
  • ????????? ??????? ????? ??? Zend-Filter, Zend-Json ? ??. `vendor/zendframework`;
  • ??? ?? ????????? ??????? ??? ?????? ? ?????????, ????????, XML, HTTP, Markdown `app/Services/My`;
  • ?? ??????? ??????? ???????????? ?????????? : jQuery, Bootstrap 3, RequireJS, Backbone, Vue `public/js/lib`;
  • ?? ??????? ??????? ???????????? ???????: Datepicker, FormValidation, MaskInput, Highlight `public/js/app/services`;
  • ??? ??????? ?????? ?????????? Backbone.js ??????????? ?????????? `ToDo` ??? ?????????? ??? ?????????? ???????? ?????? `public/js/app/bb-todo`;
  • ??? ??????? ?????? ?????????? Vue.js ??????????? ?????????? `ToDo` ??? ?????????? ????????? ?????? `public/js/app/vue-todo`.

?????? ??????...

??????????

??????????????? ??????????

?????????????

  1. ??????????? silex-mvc ?????? ? ??????? git.
  2. ????????? `composer install`.
  3. ??? ???????? ???? ?????? ????????? ????????? ???? ?? ??????? `app/Console/scripts/orm/schema_create.bat`, ?????????????? ?????????????? ???? ? `php.exe` ? ? `app\Console\index.php`;
  4. ??????????????? ??? ??????, ??? ?? ????? ????? ???? `public/index.php`.
  5. ??????????, ???? ??????????, ?????????????? ????? ?? ?????? ? `path/to/project/var`.
  6. ??????? ????? ????? ? ???????

????????????

parameters.yml

????? ??????????????? ???????? ???????? ?????????? ????? ????????????, ??????? ????? ?????????????? ? ?????? ????? ?????????????. ???????? ?????????? ????? ???????? ????? $app['config']['parameters'].

config.yml

????? ???????????? ???????????? ??? ??? ??????????? ??? ? ?????????? ???????????. ?????????? ?????? ? ????? ????? ???????? ? ?????? service_providers.

 service_providers:
    swiftmailer:
        class: Silex\Provider\SwiftmailerServiceProvider
        parameters:
            swiftmailer.options:
                host: %mail.host%
                port: %mail.port%
                username: %mail.username%
                password: %mail.password%
                encryption: %mail.encryption%
                auth_mode: %mail.auth_mode%
...

console.yml ??? application.yml

???????????? ?????????????? ??????????? ??? ??????????? ? ??? ??????????. ???? ?? ??????????? ? ????? ????????????? ????????? imports, ?? ??? ?????? ????? ?????????? ????????? ? ???????? ????????? ? ????????? imports.

security.yml

????? ??????????????? ???????? ??????? ?????????????? ???????????? ? ??? ???????????. ? ????????????? ????? ????????????? ?????.

env.yml

????? ?????????? ????? ?????? ???????? ??? ?????? ???????? ? ??????????? ?? ?????, ? ??????? ??????????? ??????????. ????????, ?? ?????? ???????? ???????????? ?????? ???????? ???? ?? ????????? ? ???????????????? (????????) ????????. ??? ????? ??????????? ?????????????? ????????, ????????? ?? ?????.

??? ??????? ???? ?????? ????? ??????? ???? env.yml ? ?????? ?????????????? ??????????? ? ?????????? ??? ? ????? ?????? ??????????. ???? ???? ????? ???????? ???? parameters.yml, ??? ??????????? ???????? ????????? ????? ????????????.