Download the PHP package 8fold/php-amos without Composer

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

8fold Amos for PHP

This project is a collection of patterns and sample code for creating flat-file PHP-based websites with minimal dependencies and opinions. The patterns are more important than the implementation.

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Installation

  1. Clone the repository.
  2. Add to project, or, copy, paste, and modify the code in your own classes.

Folders and files (basics)

Each website MAY have three areas:

  1. content,
  2. site, and
  3. source.

Each site SHOULD have its own content folder. Each site SHOULD have two folders; one for local development and the other for pointing the domain. Each site MAY have only one source folder. A baseline Amos project, MAY look something like this:

While not required, we RECOMMEND prefixing content folders with content-, site folders with site-, and using the naming convention for your preferred stack to name the folder where source code lives. (In PHP this is src.)

Content directories

Usually the most frequently changed.

Details for each page of the website exist within the content directory. Each page MAY have a metadata file, a content file, and any other associated content within the folder representing that page:

Note: The content folder(s) MAY NOT be at the same level as the site and source folders. Further, there MAY be more than 1.

The content.md is a plain text file that can operate independently from the website and rendering. The meta.json file holds metadata about the content itself and SHOULD NOT depend on the website implementation.

Source directories

Usually changed less often compared to content.

The code that consumes, manipulates, and renders the content lives here. We RECOMMEND separating data manipulation code from view code; facilitating MVC, MVVM, or MVP design patterns.

Site directories

Rarely changed.

This area is the gateway for the server and allows users to configure the environment. It's also the area where we tend to start when making non-content changes by asking two questions:

  1. Is this something the server can do for us?
  2. If so, do we want it to?

For example, Apache servers have a file called .htaccess we can, and do, use to communicate with the server. We would like to redirect a user from one URL to a different URL. We could:

  1. Write source code that looks for a redirect key in the meta.json file where the value is the target URL for the redirect. Write source code that responds with the proper 300 response code, changing the header location value for the browser. This MAY become difficult to change in the future as the number of redirected pages increases; if we decide to change, the name for the key, for example, we need to write more source code to allow for both, or, potentially update a lot of files.
  2. Use a framework that has this implementation already in place, thereby, increasing dependencies. This MAY become difficult in the future because the framework developers may modify things in a way that forces us to write more source code or modify multiple files to update to the latest version of the framework.
  3. Add one line to the .htaccess file.

This implementation

MUST remain as functional as possible. final abstract classes with static methods are used to accomplish this while taking advantage of PSR-4 autoloading.

Other

{links or descriptions or license, versioning, and governance}


All versions of php-amos with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
8fold/php-xml-builder Version ^2.0
psr/http-message Version ^2.0
psr/log Version ^3.0
voku/portable-ascii Version ^2.0
symfony/finder Version ^7.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 8fold/php-amos contains the following files

Loading the files please wait ...