Download the PHP package xenokore/web-skeleton without Composer

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

Xeno web-skeleton

A skeleton project that can be used to create a Xeno based web application.

Features

Setup

  1. Navigate to the parent directory where you want to create a new project and run the following command:

The project-name argument will be the name of the created directory.

  1. Setup a webserver to serve files in the /<project-name>/public directory. Make sure to route every non-found file through index.php. An example nginx config can be found at /<project-name>/docs/nginx.md.

  2. Startup your webserver and navigate to your newly created application. If everything works correctly you'll see the message: The app is working correctly :^)

Usage

After setting up the project and webserver to use the framework, you can start creating your application by adding classes, views, controllers and routes. Have a look at the Structure part below to know where everything should go.

The app comes with a console that helps you with some basic tasks. You can access the console by simply running: php ./console. On unix systems you can simply do ./console.

A few simple tasks are:

Structure

/app contains the files used to structure your application. It contains:

/cache contains the cache files for the application. Example:

/config contains configuration files to configure parts of the application that should not change between environments.

/controllers contains the controllers.

/docs for your app specific documentation.

/i18n is where internationalization files will be stored.

/lib is where non-composer libraries should be stored. An example would be the DataTables php files.

/logs is where the log files are stored.

/migrations is where Doctrine database migrations are stored. The migrations in the main directory are ignored by Git to help you during development. Everything in /migrations/production is committed however.

/public is the only directory that should be accessible by the webserver. Every request which does not correspond to an existing file in this directory is routed through index.php, which sets up the router. (Your favicon would go here for example.)

/src is the main directory for your application code. Everything here is namespaced under \App and is automatically dependency injected. Adding a custom container definition for a class will overwrite the default autowire behavior.

/tests is where the PHPUnit tests are located. These are namespaced under \App\Tests.

/uploads is where user uploaded files will reside. The files in here are ignored by Git.

/views is the main views directory for Twig templates.

Todo


All versions of web-skeleton with dependencies

PHP Build Version
Package Version
Requires xenokore/utility Version ^1.0
psr/http-message Version ^1.0
psr/container Version ^1.0
php-di/php-di Version ^6.3
twig/twig Version ^3.3
xenokore/app Version ^0.3.0
xenokore/logger Version ^1.1
doctrine/dbal Version ^2.8
doctrine/orm Version ^2.8
doctrine/migrations Version ^3.1
symfony/console Version ^5.2
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 xenokore/web-skeleton contains the following files

Loading the files please wait ....