Giter Club home page Giter Club logo

dalt-framework's Introduction

Dalt Framework

Dalt Framework - это простой, современный MVC PHP-фреймворк, предназначенный для создания и разработки веб-сайтов.

Установка

$ cd /path/to/htdocs
$ git clone https://github.com/volmir/dalt-framework.git
$ composer install

Путь к папке DocumentRoot (для настройки виртуальных хостов):

для фронтеэнда: ./frontend/public

для бекэнда: ./backend/public

Пример настройки виртуального хоста (Apache):

<VirtualHost *:80>
    <Directory "/var/www/dalt-framework">
        AllowOverride All
    </Directory>
    ServerName dalt-framework.local
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/dalt-framework/frontend/public
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Пример настройки виртуального хоста (Nginx):

upstream phpfcgi {
    server unix:/var/run/php/php7.0-fpm.sock;
}

server {
    listen 80;
    root /var/www/dalt-framework/frontend/public;
    index index.php;
    server_name dalt-framework.local;

    rewrite ^/index\.php/?(.*)$ /$1 permanent;

    location / {
        index index.php;
        try_files $uri @rewriteap;
    }

    location @rewriteap {
        rewrite  ^(.*)$ /index.php/$1 last;
    }

    location ~ ^/(index)\.php(/|$) {
        fastcgi_pass phpfcgi;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        include fastcgi_params;
        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

Доступы к БД сохранены в файле ./common/config/main.php

Дамп базы данных находится в файле ./tests/_data/dump.sql

Данные пользователя для логина на фронтэнд:

Login: user

Password: 111111

Данные пользователя для логина на бекэнд:

Login: admin

Password: 111111

Используемые технологии:

  • Веб-сервер
  • PHP 5.5.* или PHP 7.*
  • MySql 5.5.*
  • Composer
  • Codeception
  • PhpUnit
  • Twitter Bootstrap 3.3.6
  • PSR

dalt-framework's People

Contributors

volmir avatar volodin-victor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.