Download the PHP package jacob-roth/simple-framework without Composer

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

SimpleFramework

SimpleFramework is a simple framework for building out php pages

So J, what does this do?

Ever want to build a static website and want to reuse code you made? No? What do you mean no one builds static sites anymore? Well, SimpleFramework lets you do this anyway.

What's that? Other packages do this better? That's probably true. You should use them, then.

What SimpleFramework does:

What You Need To Do

  1. composer require jacob-roth/simple-framework

  2. Create /pages and /components directories in project root

  3. Add the following to .htaccess into project root directory

  4. Create index.php in project root directory

  5. Add the following to index.php

Using Util

Util function Description
includeComponent Import Component
requireComponent Import Component
Throws error if file doesn't exist
loadContent Start processing the url request
loadResource Load only given resource file (ie stylesheet, image, etc.)

ENVs

If needed, you can change some of the defaults in SimpleFramework using $_ENV

$_ENV name Default Description
APP_SF_COMPONENTS components Directory where component files are located
APP_SF_PAGES pages Directory where pages are located
APP_SF_ROOT index.php Root PHP page name
APP_SF_404 null The page delivered when url doesn't map to file
APP_SF_IGNORE_REGEX ["/^\/\..*$/","/^\/vendor$/"] If any requests match any of the regular expressions, automatically return 404
APP_SF_APACHE_MIME_DOT_TYPES /etc/mime.types The file path for apache mime types
APP_SF_MIME_TYPES_MAP null Map of file extensions to content types

You can set these ENVs like this:

This must be done after calling Constants::setDefaults()

Limitations


All versions of simple-framework with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.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 jacob-roth/simple-framework contains the following files

Loading the files please wait ....