承接 matiasnamendola/slimpower-one 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

matiasnamendola/slimpower-one

Composer 安装命令:

composer require matiasnamendola/slimpower-one

包简介

Slimpower Framework - lightweight version

README 文档

README

SlimPower - ONE

Latest version Total Downloads

Latest Stable Version Latest Unstable Version Total Downloads Monthly Downloads Daily Downloads composer.lock available

Slimpower Framework - lightweight version

Installation

Create folder /var/www/slimpower and download this repository

In terminal:

mkdir /var/www/slimpower
cd /var/www/slimpower
composer require matiasnamendola/slimpower-one

Or you can add use this as your composer.json:

{
    "require": {
        "slim/slim": "2.*",
        "matiasnamendola/slimpower-one": "dev-master"
    }
}

.htaccess

Here's an .htaccess sample for simple RESTful API's

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [QSA,L]
</IfModule>

or

<ifModule mod_headers.c>
    Header always set Access-Control-Allow-Headers "Authorization"
</ifModule>

Apache VirtualHost

Create conf file 'slimpower.conf' in folder '/etc/apache2/sites-available' with this content:

<VirtualHost *:80>
    ServerAdmin     webmaster@localhost
    ServerName      dev.slimpower.com
    DocumentRoot    /var/www/slimpower
    ErrorLog        /var/log/apache2/slimpower-custom-error.log
    CustomLog       /var/log/apache2/slimpower-custom.log common
    #TransferLog    /var/log/apache2/slimpower-custom.log
    
    <Directory /var/www/slimpower/>
            Options -Indexes
            AllowOverride AuthConfig FileInfo
            AddOutputFilterByType DEFLATE text/html
            AddOutputFilterByType DEFLATE text/css
            AddOutputFilterByType DEFLATE application/x-javascript
            AddOutputFilterByType DEFLATE image/gif
    </Directory>
    
    <files "*.conf">
        order allow,deny
        deny from all
    </files>
    
    <files "*.ini">
        order allow,deny
        deny from all
    </files>
    
    <files "*.json">
        order allow,deny
        deny from all
    </files>
    
    <DirectoryMatch "^/.*/(\.git|CVS)/">
        Order deny,allow
        Deny from all
    </DirectoryMatch>
</VirtualHost>

Next, copy this in terminal:

sudo a2ensite 000-slimpower
sudo /etc/init.d/apache2 restart

or

sudo a2ensite 000-slimpower
sudo service apache2 restart

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固