Download the PHP package boneframework/skeleton without Composer

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

bone framework

Latest Stable Version Total Downloads License
build status Code Coverage Scrutinizer Code Quality
Be ye wantin a PHP framework peppered with local pirate lingo?
It be the most fearsome framework in the seven seas!
http://github.com/boneframework

features

installation

via composer

We recommend using our Docker environment, however you can use your own setup, install via composer:

via docker

The Docker dev environment saves you from all the usual devops nonsense. Clone boneframework/lamp, then replace the code folder boneframework/skeleton, then start it up.

Add 127.0.0.1 boneframework.docker to your /etc/hosts (or your custom domain). To start the docker server environment:

Then browse to https://boneframework.docker, and you will see the site running.

The development also has Mailhog running at http://boneframework.docker:8025, so you can configure any dev emails to use SMTP port 1025 and all outgoing mails will appear in the Mailhog outbox.

MariaDB is running, on host mariadb (see docker-compose.yml), and config/bone-db.php).

To "SSH" into your server in order to run PHP commands like composer etc, type the following in a fresh terminal window.

To shut down your server, CTRL-C out, then type bin/stop.

a quick introduction to bone framework

skeleton project files

There are a few folders and files in your project, here's a quick description:

There are several config files included, some are for optional bone packages and may be removed :

In your config files, you can add anything you want.

the package class

Packages are a key component in a Bone Framework application. You will see in the config/packages.php which Packages are currently running on the framework. Take note that the order is important, as packages may have a dependency which it needs defined from another package. Have a look inside src/App/AppPackage.php:

You will see two methods, which are implementations of RegistrationInterface and RouterConfigInterface. See the league/route docs on usage of the router. In the addToContainer() method, you can create factories for your controllers and other dependencies.

controllers

You will notice in the above App package that the factory for the controller returns Controller::init($controller, $c). This is a convenient initialisation class that will setup a few things into your class. To make things real easy, here's all you need to do for each component:

You can also choose to extend Bone\Controller\Controller, which will give you a view, translator, and site config immediately.

controller action methods

You can see the configured routes in the package class, and which controller class and method to call. Each action method is essentially a PSR-15 Server Request Handler Interface https://www.php-fig.org/psr/psr-15/. See src/App/Controller/IndexController.php for a basic example.

db

Set your default db credentials in the main config/bone-db.php, and any environment specific configs in a subdirectory

In your package class, you can gert the connection from the container using $c->get(PDO::class).

i18n

Bone supports translation into different locales. Translation files (gettext .po and .mo) should be placed in data/translations, under a subdirectory of the locale, eg data/translations/en_GB/en_GB.po. You can set the default locale and an array of supported locales.

To use the translator, you can simply call:To use the translator, you can simply call:

You can also set a supported locale into any URL, it will be stripped off the request and the locale set. For example, if you have an endpooint /morte/info, you can make it /nl_BE/more/info or whatever, your route will still resolve but now the locale will be the one you set. You can call $this->l() in a view file, to generate this first part of your url.

logs

Bone uses monolog/monolog, and logs can be found in data/logs. Currently we only support writing to files, but you can add as many channels as you like:

To use the logger in a controller:

recommended packages

Bone Framework has a variety of packages already extending the framework further. Give these a try!

get swashbucklin'! gaarrrrr!


All versions of skeleton with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-fileinfo Version *
ext-intl Version *
ext-json Version *
ext-pdo Version *
boneframework/bone Version ^3.11
delboy1978uk/cdn Version ^2.0
delboy1978uk/image Version ^2.1
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 boneframework/skeleton contains the following files

Loading the files please wait ....