Download the PHP package golovanov/weft without Composer

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

Weft

A lightweight PHP 8.4 engine for quickly launching simple websites — SEO, optional multilingual routing, caching, request tracing and form protection out of the box. You write pages and a little business logic; the engine handles the rest.

Weft is for content-first sites: landing pages, portfolios, product and documentation sites. It is deliberately not a full-stack framework — no ORM, no DI container, no admin panel.

That file is the whole route. No route table, no controller, no registration.


Why

Every small site re-solves the same problems: clean URLs, locale prefixes, a correct <head>, sitemap, spam-resistant forms, tracing, asset hashing. Weft puts all of it behind a small, convention-driven core so a new site is mostly content.

Features

Requirements

Install

Weft expects a small site skeleton around it. The fastest way to get one is to clone the repo and copy the example/ directory — it is a complete, working site:

Get the example by cloning, not by "Download ZIP". The package archive is kept lean: example/, tests/ and CI config are export-ignored, so composer require — and GitHub's ZIP / release "Source code" downloads — contain only the engine. git clone gives you everything.

Project layout

Quick start

No build step: the example's built assets are committed, so it runs straight after composer install.

Open http://localhost:8000. The example is the Weft documentation site — it documents the engine while being built with it. With no config/config.php present, it falls back to config/config.example.php (DEV_MODE=false) and serves the committed assets.

Working on the frontend (optional)

Node is needed only to edit styles/JS:

npm run build refreshes the committed public/dist/.

Configuration in two layers

Everything optional is a flag:

Documentation

Full documentation lives in example/content/en and is served by the example site itself. Start with Getting Started.

Versioning

Weft follows semantic versioning. Pre-1.0 the API may still change between minor versions.

License

MIT © Roman Golovanov. See LICENSE.


All versions of weft with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
ext-curl Version *
ext-json Version *
firebase/php-jwt Version ^7.0
golovanov/traceloom Version ^0.4
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 golovanov/weft contains the following files

Loading the files please wait ...