Download the PHP package linna/app without Composer

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



[![Tests](https://github.com/linna/app/actions/workflows/tests.yml/badge.svg)](https://github.com/linna/app/actions/workflows/tests.yml) [![PDS Skeleton](https://img.shields.io/badge/pds-skeleton-blue.svg?style=flat)](https://github.com/php-pds/skeleton) [![PHP 8.1](https://img.shields.io/badge/PHP-8.1-8892BF.svg)](http://php.net)

About

Application Skeleton for Linna framework

Actual stable environment

Index

  1. Requirements
  2. Installation
  3. Before first run
    • Protocol and app dir config
    • Router config
  4. Url rewriting
    • Apache Virtual Host config for mod_rewrite
    • Apache .htaccess config for mod_rewrite
    • Nginx
  5. Dot env file

Requirements

Note: App was only tested under Linux with Apache web server with default php.ini

Installation

Note: Consider use of sudo command if need administrator privileges and don't forget to set proper folder permissions

With composer

Where app is directory under webserver document root ex. /var/www/html/app

After, run composer dump-autoload for optimize file autoloading

Before first run

Change config in config.php file placed in /var/www/html/app/config directory.

Protocol and app dir config

Router config

Url rewriting

If you enable the option of the router named rewriteMode in config.php, need to configure your virtual host/server block.

Apache Virtual Host config for mod_rewrite

For Apache VirtualHost config please see:
http://httpd.apache.org/docs/current/vhosts/
For Apache mod_rewrite config please see:
https://httpd.apache.org/docs/current/rewrite/

Apache .htaccess config for mod_rewrite

If you haven't access to your apache virtual host configuration, you can add .htaccess files to the app for enable mod_rewrite.

Create .htaccess file in app/ directory with this content:

Create .htaccess file in app/public/ directory with this content:

Nginx

For Nginx Server Blocks config please see:
https://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/

Setting url rewrite with Nginx is simpler than Apache counterpart, add try_files $uri $uri/ /index.php?$args; to location block:

Dot env file

With composer installation, a .env file is created into app root directory and it could be used for declaring default environment variables.

.env file content look like this:

.env file valid keys:

Values declared in the file will overwrite config.php values.

Position of .env file could be changed editing envFile value.

If you do not want use .env file can delete it.


All versions of app with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
linna/dotenv Version >=1.1
linna/auth-mapper-mysql Version >=0.2
linna/framework Version >=0.27
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 linna/app contains the following files

Loading the files please wait ....