Download the PHP package phastasf/framework without Composer

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

Phast Framework

Latest Version PHP Version

A lightweight, modern PHP framework for building CLI, web, and API applications. Built on PSR standards with a clean, intuitive API.

Features

Requirements

Installation

Quick Start

Web Application

Create public/index.php:

Console Application

Create console:

Configuration

Configuration files are in config/. The framework loads defaults from the package and merges your project's config/ overrides.

Application

Database

Session

Configure session cookie settings:

Trusted Proxies

When running behind a reverse proxy or load balancer, configure trusted proxies for accurate client IP detection:

Routing

Middleware

Middleware is configured in config/middleware.php:

Generate a new middleware:

Client IP Detection

When running behind a reverse proxy or load balancer, add ClientIpMiddleware to your middleware stack to correctly detect client IP addresses. The middleware reads trusted proxy configuration from config/proxies.php and extracts the real client IP from proxy headers.

CORS (Cross-Origin Resource Sharing)

Add CorsMiddleware to your middleware stack to handle cross-origin requests. The middleware automatically handles preflight OPTIONS requests and adds appropriate CORS headers to responses.

The middleware is configured via config/cors.php:

Configuration Examples

Allow all origins (development):

Allow specific origins (production):

Apply CORS only to API routes:

Exclude certain paths from CORS:

Important Notes

Service Providers

Service providers are configured in config/providers.php:

Generate a new service provider:

Service providers implement Phast\Providers\ProviderInterface with two methods:

Controllers

Models

Migrations

Seeders

Seeders add fake or test data to the database. You can insert data via the connection (raw) or using models. Dependencies (e.g. ConnectionInterface) are injected via the seeder constructor and resolved by the container. Only the seeders listed in config database.seed are run when you execute the seed command.

Configure which seeders run in config/database.php:

Queue Jobs

Console Commands

Generators

Database

Development

Usage Examples

Caching

Logging

HTTP Client

The framework includes a PSR-18 compliant HTTP client:

Validation

JWT Authentication

Error Handling

The framework includes centralized error handling that:

License

MIT License - see LICENSE file.

Credits

Built on excellent PSR-compliant libraries:


All versions of framework with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
middlewares/client-ip Version ^2.1
vaibhavpandeyvpz/kunfig Version ^2.0
vaibhavpandeyvpz/databoss Version ^2.1
vaibhavpandeyvpz/datum Version ^1.1
vaibhavpandeyvpz/kram Version ^1.0
vaibhavpandeyvpz/clip Version ^1.0
vaibhavpandeyvpz/filtr Version ^2.0
vaibhavpandeyvpz/ank Version ^2.0
vaibhavpandeyvpz/jweety Version ^2.0
vaibhavpandeyvpz/phlash Version ^3.0
vaibhavpandeyvpz/tez Version ^3.0
vaibhavpandeyvpz/phew Version ^2.0
vaibhavpandeyvpz/drishti Version ^1.1
vaibhavpandeyvpz/samay Version ^1.0
vaibhavpandeyvpz/dakiya Version ^3.0
vaibhavpandeyvpz/vidyut Version ^3.0
vaibhavpandeyvpz/sandesh Version ^3.0
vaibhavpandeyvpz/godam Version ^2.0
vaibhavpandeyvpz/soochak Version ^2.0
vaibhavpandeyvpz/katora Version ^2.0
vaibhavpandeyvpz/qatar Version ^1.0
vaibhavpandeyvpz/envelope 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 phastasf/framework contains the following files

Loading the files please wait ...