Download the PHP package brewphp/skeleton without Composer

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

BrewPHP project

This project was created from the BrewPHP skeleton. BrewPHP is a small, Django-inspired PHP framework.

First steps

Open http://127.0.0.1:8000/ and you should see the welcome page.

create-project already copied .env.example to .env, generated a SECRET_KEY and created the database tables. If you cloned this project instead, do it yourself:

Then create your first user, with every permission:

and log in to the admin at http://127.0.0.1:8000/admin/.

Useful commands

Command What it does
php manage.php serve Start the development server on 127.0.0.1:8000
php manage.php startapp blog Create a new app in apps/blog/
php manage.php makemigrations Write migrations for changes to your models
php manage.php migrate Apply migrations to the database
php manage.php showmigrations List migrations and whether they are applied
php manage.php createsuperuser Create a user with every permission
php manage.php changepassword ann Change a user's password
php manage.php clearsessions Delete expired sessions (run it from cron)
php manage.php routes List every URL pattern
php manage.php check Look for configuration problems
php manage.php about Show versions and installed apps
php manage.php list Show every command
composer test Run the tests

Project layout

Templates

Pages are .html templates in the BrewPHP template language, which works like Django's: {{ variable }}, {% tag %} and {% extends %}. The home page apps/pages/templates/pages/home.html extends the layout templates/base.html. Templates are compiled to PHP once and cached in storage/templates/. See the templates documentation.

Database

The project uses SQLite out of the box: the database is the file storage/db.sqlite3, created on first use. To use MySQL or PostgreSQL, set the DB_* variables in .env (see .env.example).

Tables come from migrations, like in Django. After adding or changing models in an app, write the migration and apply it:

Commit the files in apps/<app>/migrations/ with your code. See the migrations documentation.

The admin

The automatic admin lives at /admin/. To manage a model there, register it in its app's admin.php (startapp creates one):

Only staff users get in, and each one sees what their permissions allow. See the admin documentation.

Accounts and security

The project comes with users, sessions and CSRF protection turned on (config/settings.php):

See the authentication documentation.

Read the documentation at https://docs.brewphp.dev.

Note for BrewPHP contributors

The skeleton requires brewphp/brewphp: ^1.0 from Packagist. To work on the framework and the skeleton together, point Composer at your local checkout without committing the change:

Undo it with git checkout composer.json before committing.


All versions of skeleton with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
brewphp/brewphp Version ^1.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 brewphp/skeleton contains the following files

Loading the files please wait ...