Download the PHP package ski/ski-php without Composer

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

🏔️Ski Template Engine (PHP+AlpineJS)

📜Welcome to Documentation

Ski Engine is a framework agnostic template engine that works with Alpine JS

Mock your next data driven application quickly with components.

For more information, check out Alpine JS Documentation

Alpine JS is an quite simple and very intuitive Javascript framework inspired by Vue JS which can be used directly in HTML from a CDN.

A, check out Alpine JS Documentation

☑️ Installation

The best way to start a Ski project is using composer

Create the following project file structure.

In your php that instanciate ski, you need to specifies :

That's all folks. Ski Engine is now ready to use !

🔨 Usage

This file can be your index.php or your router for example. This is how to render a view

📑 $ski->template() Choose template

Define which template will be rendered.

☁️ $ski->data()Add some datas OPTIONAL

Pass datas from your backend, DB, Models or whatever to the view.

The $datas variable can be a JSON Object, PHP Object or an Array.

Datas are passed to AlpineJS in x-data tag in <body> as Javascript Object datas

⚡️ $ski->render()Build view and send it

The ->render() method will send the view to the browser, this methods must be called in last.

Previous methods can be called in any order.

🏔️ Create better UI simpler with components

With Ski Engine, you create templates by using components. Components are little piece of code that you can manipulate in differents way. Components system are processed by PHP and components behavior are defined with AlpineJS directives.

🔁 How Ski Components Works ?

To create new component, create new file in components/ directory. The filename will be used as component tag name

Let's create a simple comment component :

Let's create another component article :

📑 How to build template ?

To build templates, you just have to assemble your components. For call components, use the following syntax <x-componentName> represents our component.

The components names can only contains letters, and the word template is reserved and can't be used. Tags are case insensitive : <x-App> <x-APP> <x-app> make reference to same "app.php" components file.

<template> should be called in templates and not in components itself, is just a tip.

🔗 Head.php

This file populate <head></head> in every rendered HTML document by Ski. Here add your stylesheets or your favorite CSS frameworks CDN.

Be sure Alpine JS CDN is linked

🧪 Config.yarn

Soon !

Integration with some frameworks

NAMM : Détailler comment implémenter Ski avec si possible avec Laravel, lumen, leaf, Flight,

🔬 Future of Ski

Ski-Engine is an Open Source project, every contribution are welcomes. Some points needs attention :

⚖️ Legal

At this early point of developpement, use Ski-Engine in production is clearly not recommanded.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This project is not affiliate with Alpine JS (Thanks to Caleb Porzio for this really cool works on AlpineJS)


All versions of ski-php with dependencies

PHP Build Version
Package Version
Requires symfony/console Version ^6.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 ski/ski-php contains the following files

Loading the files please wait ...