PHP Classes

Laravel SAAS Boilerplate: Base application to develop software as a service

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 68 All time: 10,335 This week: 30Up
Version License PHP version Categories
saas-boilerplate 1.0.0The PHP License5PHP 5, E-Commerce, Web services
Description 

Author

This package provides a base application to develop software as a service.

It provides a base Laravel application that developers can use for a multi-tenant service that is provided and charged to different users.

The package also provides the means to install and set up SSL certificates for the application domain and the Nginx server to server the application responses to the user accesses.

Innovation Award
PHP Programming Innovation award nominee
August 2022
Number 4
A Software As A service (SAAS) is an application that a business provides to its users.

Often SAAS users may pay a given amount to have access to a better version that offers more benefits than a free version.

Usually, users can access a free version to evaluate the usefulness of the SAAS.

This package provides a base of a SAAS application that developers can use to create their own SAAS applications.

Manuel Lemos
Picture of Nyi Nyi Lwin
  Performance   Level  
Innovation award
Innovation award
Nominee: 7x

Winner: 4x

 

Documentation

Lara SaaS - Multi-tenant SaaS Boilerplate

The boilerplate uses Laravel 8.

Packages

Nginx Wildcard SSL & SubDomain

Wildcard ssl certificate

sudo certbot --server https://acme-v02.api.letsencrypt.org/directory -d example.com -d *.example.com --manual --preferred-challenges dns-01 certonly

Nginx Wildcard Subdomain

server
{
  listen 80;
  listen [::]:80;
  server_name *.example.com;
  return 301 https://$host$request_uri;
}

server
{
  listen 443 ssl;
  server_name *.example.com;

  ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
  include /etc/letsencrypt/options-ssl-nginx.conf;
  ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;


  root /var/www/html/saas/public;

  add_header X-Frame-Options "SAMEORIGIN";
  add_header X-Content-Type-Options "nosniff";

  index index.php;

  charset utf-8;

  location /
  {
    try_files $uri $uri/ /index.php?$query_string;
  }

  location = /favicon.ico
  {
    access_log off; log_not_found off;
  }
  location = /robots.txt
  {
    access_log off; log_not_found off;
  }

  error_page 404 /index.php;

  location ~ \.php$
  {
    fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
    fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
    include fastcgi_params;
  }

  location ~ /\.(?!well-known).*
  {
    deny all;
  }
}

Credits

  • All Contributors

  Files folder image Files (305)  
File Role Description
Files folder image.github (1 file)
Files folder imageapp (10 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (22 files)
Files folder imagedatabase (3 directories)
Files folder imagepublic (5 files, 2 directories)
Files folder imageresources (4 directories)
Files folder imageroutes (5 files, 2 directories)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Plain text file artisan Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file helpers.php Example Example script
Accessible without login Plain text file package-lock.json Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file server.php Aux. Auxiliary script
Accessible without login Plain text file tailwind.config.js Data Auxiliary data
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:68
This week:0
All time:10,335
This week:30Up