The domestic open source CMS based on Laravel supports spoole, including API interface

Posted by shakuni on Mon, 29 Nov 2021 05:15:20 +0100

Project introduction

MyCms is an open source and free self media blog CMS system developed based on Laravel. It is suitable for the development and use of personal websites and enterprise websites. The software copyright number is 2021SR1543432. MyCms is released based on Apache 2.0 open source protocol. It is free and unrestricted for commercial use. Please continue to pay attention to us.

Technical communication QQ group: 887522124 Please note the source of adding group: such as gitee, github, official website, etc.

Site address

Excellent cases

system function

  • Background basic functions
    • Authority management
    • Content management
    • Commodity management
    • Member management
    • Plug in management
  • Realization of foreground function
    • home page
    • Article classification page
    • Article search page
    • Article tab
    • Article details page
    • Article review
    • Product list page
    • Product details page
    • Member login / registration
    • Member Center
  • API interface
    • Signature encryption
    • System time interface
    • Article classification list interface
    • Article classification details interface
    • Article list interface
      • The latest and hottest articles in the whole station
      • Classify the latest and hottest articles
      • Tag associated article list
      • Search article list
    • Article details interface
    • Commodity classification list interface
    • Commodity classification details interface
    • Product list interface
    • Product details interface

System characteristics

  • Easy installer
  • Support for spoole acceleration
  • Simple, elegant, flexible and scalable
  • Perfect plug-in installation / uninstallation mechanism
  • URL mode friendly to SEO optimization
  • Embedding points of common functions to better expand the system
  • More extensible route monitoring function
  • More elegant and SEO optimized paging
  • Basic cache function and database index establishment
  • Simple and easy-to-use template function, making templates more convenient

Performance improvement

  • Accelerating performance with opcache
  • Cache routing information php artisan route:cache
  • Close debugging mode APP_DEBUG=false
  • Cache configuration information: php artisan config:cache
  • Using the spool version

Swoole version

At present, the latest version v1.3.2 + has added the support of Swoole.
Users who use the new version can install directly and then press the following configuration.

Users using older versions need to install composer require swooletw / laravel swoole first.
Add the service provider in the config/app.php service provider array.

[
    'providers' => [
        SwooleTW\Http\LaravelServiceProvider::class,
    ],
]

Nginx configuration

map $http_upgrade $connection_upgrade {
    default upgrade;
    ''      close;
}
server {
    listen 80;
    server_name your.domain.com;
    root /path/to/laravel/public;
    index index.php;

    location = /index.php {
        # Ensure that there is no such file named "not_exists"
        # in your "public" directory.
        try_files /not_exists @swoole;
    }
    # any php files must not be accessed
    #location ~* \.php$ {
    #    return 404;
    #}
    location / {
        try_files $uri $uri/ @swoole;
    }

    location @swoole {
        set $suffix "";

        if ($uri = /index.php) {
            set $suffix ?$query_string;
        }

        proxy_http_version 1.1;
        proxy_set_header Host $http_host;
        proxy_set_header Scheme $scheme;
        proxy_set_header SERVER_PORT $server_port;
        proxy_set_header REMOTE_ADDR $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;

        # IF https
        # proxy_set_header HTTPS "on";

        proxy_pass http://127.0.0.1:1215$suffix;
    }
}

Swoole run

php artisan swoole:http start

command explain
start open
stop stop it
restart restart
reload heavy load
infos information
##Plug in list
name brief introduction type state Price
System record Background operation record plug-in unit complete free
Baidu push Baidu resources push to accelerate page collection plug-in unit complete free
SEO settings Custom setting title, keyword, description plug-in unit complete free
Links Links plug-in unit complete free
Site map Generate site XML map plug-in unit complete free
Advertising management Advertising management plug-in unit complete free
URL navigation URL navigation plug-in unit complete free
SEO optimization (URL) SEO optimization (URL) plug-in unit complete to grant authorization
Alibaba cloud OSS Alibaba cloud OSS plug-in unit complete to grant authorization
Sql conversion Sql to Laravel database migration plug-in unit complete to grant authorization
Making posters Online Drag and drop to make posters Online plug-in unit complete to grant authorization
speech synthesis Online text to voice plug-in unit complete to grant authorization
QQ login QQ login plug-in unit complete to grant authorization
Template management Quickly generate templates plug-in unit complete to grant authorization
Alibaba cloud SMS Alibaba cloud SMS plug-in unit complete to grant authorization
Alipay payment Personal Edition (face to face) plug-in unit complete to grant authorization
Gathering reptiles Gathering reptiles plug-in unit complete to grant authorization
Paid column Paid column plug-in unit complete to grant authorization

express setup

  1. Download source code / upload source code to the server
  2. Set the site running directory to / public
  3. visit http://xxx.xxx/install Configure online according to the installation wizard

Background interface


Topics: Laravel