Download the PHP package sadegh-pm/slim-skeleton without Composer

On this page you can find all versions of the php package sadegh-pm/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

What is Slim-skeleton

Slim micro framework has popular and simple basic PHP framework and is amazing to develop web applications with more performance, clean, simple and optimized, on other way Laravel framework has configured and very powerful feature like template engine, Eloquent for database interactions, cli, events and etc, and that's amazing too, so slim skeleton configured and structured in slim base with some Laravel features and structure, skeleton using slimframework for base and twig for template engine, monolog for logger, Laravel Eloquent for database interactions, laravel mix for js/css operations and etc.
If you worked with Laravel, then the skeleton structure is familiar to you.

Installation and quick start

Server Requirements
Installing Slim-skeleton

It's recommended that you use Composer to install Slim-skeleton. So, before using Skeleton, make sure you have Composer installed on your machine.

Quick start

Files and directories structure

Local Development

If you need develop in local server you may use Skeleton core command or Composer command. This commands will start a development server at http://localhost:8000

Deploying to a shared hosts

Configuration Files

All of the configuration files are stored in the config directory.
you may use the get_env helper to retrieve values from these variables in your configuration files but if you need value in app or twig just use config helper like next section.

Accessing Configuration Values:
You may easily access your configuration values using the global config helper function from anywhere in your application.

Cache

Skeleton use PSR-6 Cache and provides redis and file cache driver you can define in env.yaml. The cache configuration is located at config/cache.php. In this file you may specify which cache driver you would like to be used by default throughout your application.

You can see all cache method in app/Kernel/Util/Cache.php or in test file for cache in tests/Component/CacheTest.php

Validation

Skeleton use Laravel validation and with validator helper you can use it for validate request data. (You can see full documentation in Laravel validation docs)

You can see simple example for validation in tests/Component/ValidatorTest.php

Command

The slim skeleton use Silly CLI that just an implementation over the Symfony Console. You can read the Silly CLI documentation or Symfony documentation to learn everything you can do with it.

Command file of config directory has two sections command, For user custom command and skeleton core command. (HelloWorldCommand created for example)
For define new custom command:

You can see core command file in app/Kernel/Command and use that for create custom command.

Events

Events provides a simple observer implementation, allowing you to subscribe and listen for various events that occur in your application.

Localization

Localization features provide a convenient way to retrieve strings in various languages, allowing you to easily support multiple languages within your application. Language strings are stored in files within the resources/lang directory. Within this directory there should be a subdirectory for each language supported by the application and all language files return an array of key value strings.
You can use trans or __(2 underscore) helpers in app and twig template for get value from local file.

Helpers

Skeleton comes with some helpers. For more information see app/Kernel/helper.php:

Database

Eloquent ORM

Skeleton use Laravel eloquent and database system, For more information about eloquent you can see Laravel eloquent documentations, you can use table helper for interacting with database too and for more information see Laravel query builder documentations

Observers

If you are listening for many events on model, you may use observers to group all of your listeners into a single class. Observers classes have method names which reflect the Eloquent events you wish to listen for. Each of these methods receives the model as their only argument.

Storage

Skeleton use powerful filesystem you can see more information in Filesystem documentations or refer to Laravel file storage documentations.
For access to storage file in public directory need to create symlink by below command:

The below section is test for how to use storage (tests/Component/StorageTest.php)

Twig

Skeleton use twig template engine that is a modern template engine for PHP and:

Fast: Twig compiles templates down to plain optimized PHP code. The overhead compared to regular PHP code was reduced to the very minimum.

Secure: Twig has a sandbox mode to evaluate untrusted template code. This allows Twig to be used as a template language for applications where users may modify the template design.

Flexible: Twig is powered by a flexible lexer and parser. This allows the developer to define its own custom tags and filters, and create its own DSL.

For more information about twig you can see Twig page.

Test

The tests/Functional include sample tests.phpunit used for testing. Define your functional test in this directory.

use composer test for run tests.

License

The Slim-skeleton framework is open-sourced software licensed under the MIT license.


All versions of slim-skeleton with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
cache/filesystem-adapter Version ^1.0
cache/namespaced-cache Version ^1.0
cache/redis-adapter Version ^1.0
hassankhan/config Version ^1.0
illuminate/database Version ^5.5
illuminate/events Version ^5.5
illuminate/pagination Version ^5.5
illuminate/translation Version ^5.5
illuminate/validation Version ^5.5
kitchenu/slim-debugbar Version ^1.1
league/flysystem Version ^1.0
mnapoli/silly Version ^1.7
monolog/monolog Version ^1.23
psy/psysh Version @stable
slim/csrf Version ^0.8.2
slim/slim Version ^3.10
slim/twig-view Version ^2.4
symfony/yaml Version ^3.4
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 sadegh-pm/slim-skeleton contains the following files

Loading the files please wait ....