Download the PHP package samuelgfeller/slim-starter without Composer

On this page you can find all versions of the php package samuelgfeller/slim-starter. 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-starter

## Slim Starter [![Latest Version on Packagist](https://img.shields.io/github/release/samuelgfeller/slim-starter.svg)](https://packagist.org/packages/samuelgfeller/slim-starter) [![Code Coverage](https://scrutinizer-ci.com/g/samuelgfeller/slim-starter/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/samuelgfeller/slim-starter/?branch=master) [![Build Status](https://scrutinizer-ci.com/g/samuelgfeller/slim-starter/badges/build.png?b=master)](https://scrutinizer-ci.com/g/samuelgfeller/slim-starter/build-status/master) [![Quality Score](https://img.shields.io/scrutinizer/quality/g/samuelgfeller/slim-starter.svg)](https://scrutinizer-ci.com/g/samuelgfeller/slim-starter/?branch=master) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/samuelgfeller/slim-starter/blob/master/LICENSE) [Slim 4](https://www.slimframework.com/) full stack starter template following 2024 best practices and [SOLID](https://en.wikipedia.org/wiki/SOLID) principles to quickly get started with a scalable PHP web application. An extensive [**documentation**](https://samuel-gfeller/docs) explains the [architecture](https://samuel-gfeller.ch/docs/Architecture), components, design choices (i.e. [SRP](https://samuel-gfeller.ch/docs/Single-Responsibility-Principle-(SRP))) and features. [Libraries](https://samuel-gfeller.ch/docs/Libraries-and-Framework) are kept to a minimum and to allow for most flexibility and long-term viability.

Features

The base for this project was the official Slim-Skeleton and Odan's slim4-skeleton but with a lot of additional opinionated features and examples such as:

This skeleton template is a stripped-down version of the slim-example-project which contains a lot more features and examples.

Technologies

Requirements

Installation

1. Create project

Navigate to the directory you want to create the project in and run the following command, replacing project-name with the desired name for your project.

This will create a new directory with the specified name and install all necessary dependencies.

2. Set up the database

Open the project in your IDE and rename the file config/env/env.example.php to config/env/env.php and add the local database credentials.

Then, create the database for the project and add the name to the config/env/env.dev.php file, like this:

After that, create a separate database for testing and add the name to the config/env/env.test.php file.
The database name must contain the word "test" as a safety measure to prevent accidentally truncating the development database while testing.

The Configuration documentation details the different configuration files and how they are used and loaded.

3. Run migrations

Open the terminal in the project's root directory and run the following command to create the demo table user:

4. Insert demo data

Four demo users can be inserted into the database to test the application and API response by running the following command:

5. Update GitHub workflows

To run the project's tests automatically when pushing, update the .github/workflows/build.yml file.
Replace the matrix value "test-database" with the name of your test database as specified in config/env/env.test.php.

If you don't plan on using Scrutinizer, remove the .scrutinizer file at the root of the project, otherwise you can follow this guide on how to set it up.

Done!

That's it! Your project should now be fully set up and ready to use.
If you are using XAMPP and installed the project in the htdocs folder, you can access it in the browser at http://localhost/project-name.
Or you can serve it locally by running php -S localhost:8080 -t public/ in the project's root directory.

Support

Please read the Support❤️ page if you value this project and its documentation and want to support it.

License

This project is licensed under the MIT License — see the LICENSE file for details.


All versions of slim-starter with dependencies

PHP Build Version
Package Version
Requires slim/slim Version ^4
monolog/monolog Version ^3
php-di/php-di Version ^7.0
cakephp/database Version ^5
slim/php-view Version ^3.0
cakephp/validation Version ^5.0
selective/basepath Version ^2.0
nyholm/psr7 Version ^1.5
nyholm/psr7-server Version ^1.1
fig/http-message-util Version ^1.1
samuelgfeller/slim-error-renderer Version ^1
php Version ^8.2
ext-pdo Version *
ext-json Version *
ext-gettext Version *
ext-intl Version *
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 samuelgfeller/slim-starter contains the following files

Loading the files please wait ....