Download the PHP package fredoware/fredobase without Composer

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

FredoBase

FredoBase is a lightweight plain-PHP API micro framework by Fredoware for quickly creating database-backed CRUD APIs.

It is intentionally small, readable, and easy to copy for future Fredoware projects.

FredoBase gives you:

Structure

Install With Composer

After the package is published on Packagist, create an application with:

Composer installs the dependencies and runs php fredobase install. The installer creates .env, generates a unique APP_KEY, and never overwrites an existing environment file.

Before the package is on Packagist, it can be tested directly from GitHub:

Manual Setup

  1. Install dependencies and prepare the project:

  2. Check your database settings in .env:

  3. Run migrations:

  4. Test the health endpoint:

Expected response:

CLI Commands

Show help:

Prepare a new checkout (safe to run more than once):

Create a CRUD module:

Run migrations:

After adding a field to a module model, generate and apply its migration:

The module generator creates:

It also registers REST routes inside routes/api.php.

Starter Endpoints

Starter Tables

Creating A New Module

Read the full tutorial:

docs/creating-a-module.md

Quick version:

Then test:

Write routes require a bearer token by default. Existing file-based endpoints remain supported for backward compatibility.

Authentication

Run migrations and create the first administrator:

Login with a JSON POST request to api/authLogin.php. A successful response contains a bearer token. Send it to protected endpoints with:

Protect an endpoint and access the authenticated account with:

Require one or more roles with:

Revoke the current token by sending an authenticated POST request to api/authLogout.php. Token lifetime defaults to 24 hours and can be changed with AUTH_TOKEN_TTL in .env.

GitHub Notes

Commit .env.example, but do not commit .env.

The .gitignore already excludes .env, logs, temporary files, and uploaded media.

fredobaseapi


All versions of fredobase with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
ext-pdo Version *
phpmailer/phpmailer Version ^6.8
authorizenet/authorizenet Version ^2.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 fredoware/fredobase contains the following files

Loading the files please wait ...