Download the PHP package stateless/cms without Composer

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

StatelessCMS

Object-oriented PHP building-blocks for websites and webapps.

Introduction

StatelessCMS is a headless PHP framework designed for creating database-driven PHP applications, "headless" meaning there is no existing front-end. StatelessCMS isn't an app or a CMS itself - it just gives you the building blocks to create one yourself.

Installation

Minimum Requirements

Get a server running PHP 7.0 and a SQL database. Note that apache is recommended, as Request::getHeaders() and Request::getToken() rely on apache_get_headers() as of v0.0.3

Composer Install

The easiest way to install StatelessCMS is to install with Composer:

Web Download

Download the latest release from https://github.com/StatelessSoftware/StatelessCMS/releases.

Development

If you would like the live development branch instead, download or clone from github. https://github.com/StatelessSoftware/StatelessCMS.git

Setting up your first project

Although you are free to use any directory structure you choose, the common basic structure for StatelessCMS is as follows. Don't worry too much about the specifics - we'll create each part step by step.

If you didn't already, install StatelessCMS to vendor/stateless (follow installation instructions above)

Getting started

Open public/index.php. Insert the following code:

If you downloaded and installed StatelessCMS without using Composer, change ../vendor/autoload.php to your StatelessCMS.php file

About public/index.php

This file is the entry point, meaning it is the start of the program. For now, we will use it to show our examples. Later, we can use it to startup our application.

Test

Open a browser and navigate to localhost/public/ You should see Home.

Configuring your server

Ensure your httpd document root is set to public/ Now navigate to localhost/ and you should see Home

Enable mod_rewrite (Clean URLs)

  1. In a directory block for public, set AllowOverride All
  2. Copy the following htaccess file to public/.htaccess

You may need to install mod_rewrite

Several pages

Now we will create additional pages with clean urls. Replace index.php with the following code

Load up localhost/about in your browser, you should see "Read all about us!"


All versions of cms with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
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 stateless/cms contains the following files

Loading the files please wait ....