Search by

sy / bootstrap

syone

A library for starting to create a website

Package info

github.com/syframework/bootstrap

pkg:composer/sy/bootstrap

Statistics

Installs: 1 848

Dependents: 7

Suggesters: 0

Stars: 1

Open Issues: 3


README

A library for starting to create a website. Used in sy/project

Installation

$ composer require sy/bootstrap

Upgrading to 3.0

3.0.0 removes Sy\Bootstrap\Plugin. The project lifecycle lives in bin/sy only, and a project declares one hook per Composer run:

"scripts": {
	"post-create-project-cmd": ["@sy install"],
	"post-install-cmd": ["@sy install"],
	"post-update-cmd": ["@sy install"],

	"sy": "@php protected/vendor/bin/sy"
}

composer install-plugin <name> becomes composer require sy/bootstrap-<name>, and composer db <task> becomes composer sy db <task>. A project that still wires post-package-install/post-package-update to Plugin::* must replace those two hooks first: the ^2 constraints exclude 3.0, so the break never arrives through an ordinary composer update. The full table is in the sy/project README.

Writable directories

3.1.0 adds extra.sy.writable: the project directories the web server writes into (@LOG_DIR, @UPLOAD_DIR in sy/project). sy install creates them 0777 and sy doctor reports one that is missing or closed.

An entry is either a project path or @CONSTANT, read from protected/conf/conf.php in a child PHP process: the application keeps owning the path (LOG_DIR, UPLOAD_DIR), and no path is copied into composer.json. A constant that points outside the project is left to the server administrator.

The installer runs as the developer, PHP-FPM as www-data: a fresh install would otherwise let the application fail its first log write with Warning: mkdir(): Permission denied, followed by the Cannot modify header information cascade in dev. The mode applies to the declared paths only — unlike the recursive chmod -R a+w . of the removed install-project script, protected/conf/*.ini is never opened to the world.

Documentation

  • Form — form components and submission flow
  • API — HTTP API routing, responses and security
  • URL Converters — clean URLs, converter ordering and Url::build()
  • User — accounts, roles, permissions, settings and authentication