Download the PHP package dev-pledge/slim-skeleton without Composer

On this page you can find all versions of the php package dev-pledge/slim-skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package slim-skeleton

Slim Framework 3 Skeleton Application For DevPledge

This is based on slim/slim-skeleton from Josh Lockhart.

This also has Our Docker Compose and Base Dockerfiles included!

Use this skeleton application to quickly setup and start working on a new Slim Framework 3 application. This application uses the latest Slim 3 with the PHP-View template renderer. It also uses the Monolog logger.

This skeleton application was built for Composer. This makes setting up a new Slim Framework application quick and easy.

Install the Application

Run this command from the directory in which you want to install your new Slim Framework application.

composer create-project dev-pledge/slim-skeleton [my-app-name]

Replace [my-app-name] with the desired directory name for your new application. You'll want to:

To set up sentry

docker-compose run --rm sentry upgrade

To run the application in development, you can also run either of these command.

docker-compose up

or

composer start-docker

gem install docker-sync

docker-sync up

Run this command to run the test suite

composer test

To resolve to the correct domain you want to use

change files:

vars inside [] are to be changed if needed!

config/swoolehost.conf

    server{
        listen 80;
        listen [::]:80;
        listen 443;
        listen [::]:443;

        server_name [api.swoole.co.uk];

        location /
        {
            proxy_pass http://[api:9501];
        }
    }

config/webhost.conf
    server {
        listen 80;
        listen 443;
        index index.php index.html;
        root /var/www/public;

        server_name [api.web.co.uk];

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

        location ~ \.php$ {
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass [api:9000];
            fastcgi_index index.php;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param PATH_INFO $fastcgi_path_info;
        }
    }

.developmentenv

    MYSQL_HOST="[mysql-db]"
    MYSQL_DB="devpledge"
    MYSQL_USER="root"
    MYSQL_PASSWORD="test_pass"
    JWT_SECRET="987ytgvbnytfcvbh4g3uwsjdcnfbr"
    SWOOLE_PORT="[9501]"
    API_DOMAIN="[api]"

docker-compose.yml

    version: "3"

    services:
      [api]:
        build:
          context: .
          dockerfile: api.dockerfile
        environment:
          docker: "true"
          production: "false"
        volumes:
          - .:/var/www
          - ./logs:/var/www/logs
        ports:
          - 9000:9000
          - [9501:9501]

      web:
        build:
          context: .
          dockerfile: web.dockerfile
        volumes:
          - ./config:/etc/nginx/conf.d
        ports:
          - 80:80
          - 443:443

      [mysql-db]:
        restart: always
        image: mysql:latest
        environment:
          MYSQL_ROOT_PASSWORD: 'test_pass'
          MYSQL_USER: 'test'
          MYSQL_PASS: 'pass'
        volumes:
         - ./data:/var/lib/mysql
        ports:
          - [3307:3306]

/etc/hosts (access by sudo nano /etc/hosts) 

    #add lines so your broswer resolves to correct domains on your MAC or Dev Machine
    127.0.0.1       [api.web.co.uk]
    127.0.0.1       [api.swoole.co.uk]

That's it! Now go build something cool.

This needs some work before this could go to PRODUCTION proper - but it will get you developing!


All versions of slim-skeleton with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
slim/slim Version ^3.1
slim/php-view Version ^2.0
monolog/monolog Version ^1.17
tomwright/extended-pdo Version ^1.0
tomwright/json Version ^1.0
vlucas/phpdotenv Version ^2.4
sentry/sentry Version ^1.8
dev-pledge/slim-integrations Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dev-pledge/slim-skeleton contains the following files

Loading the files please wait ....