Download the PHP package phastasf/app without Composer

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

Phast Framework Skeleton

A skeleton application for Phast Framework - a lightweight, modern PHP framework built on PSR standards.

Features

This skeleton application provides a clean starting point for building applications with Phast Framework, including:

Requirements

Installation

Setup project:

Create SSL certificates:

This will create certificate files (local.dev+4.pem and local.dev+4-key.pem) in the project root.

Add hostnames to /etc/hosts:

Add the following lines:

Start services:

Usage

Available Services

Once the Docker services are running, you can access:

Example Routes

Docker Services

The Docker Compose setup includes:

Structure

The project structure is as explained below:

Console Commands

Generators

Create command

Generate a new console command:

Create controller

Generate a new controller:

Create model

Generate a new model:

Create migration

Generate a new migration:

Create job

Generate a new job class:

Create event

Generate a new event class:

Create middleware

Generate a new middleware class:

Create service provider

Generate a new service provider:

Create seeder

Generate a new seeder class (for development/testing data):

Database

Run migrations

Run pending migrations:

Rollback migrations

Rollback migrations (default: 1):

Rollback multiple migrations:

Run seeders

Run database seeders (only those listed in config/database.php under seed):

Development

Start development server

Start the development server:

Run queue worker

Start a queue worker:

Interactive shell

Start an interactive PHP shell (REPL) with container access:

Clear cache

Clear cached config, routes, and application cache:

Configuration

Configuration files can be placed in the config/ directory to override framework defaults. The framework loads default configurations from the package and merges your project-specific overrides.

Environment variables are configured in the .env file. The .env.example file includes default values configured for the Docker setup:

Middleware

Middleware allows you to intercept and modify HTTP requests and responses. Create a custom middleware using the generator:

This will create a middleware in app/Middleware/ that implements Psr\Http\Server\MiddlewareInterface.

The config/middleware.php file is automatically copied from the framework during composer install or composer update if it doesn't exist. This file defines the middleware pipeline that processes HTTP requests:

Middleware is executed in the order defined in the array. Core middleware must remain in their positions for the framework to function correctly.

The ClientIpMiddleware correctly detects client IP addresses when running behind a reverse proxy (like Traefik). It reads trusted proxy configuration from config/proxies.php if it exists.

Service Providers

Service providers allow you to register services in the dependency injection container. Create a custom provider using the generator:

This will create a provider in app/Providers/ that implements Phast\Providers\ProviderInterface. The provider has two methods:

The config/providers.php file is automatically copied from the framework during composer install or composer update if it doesn't exist. You can customize it to add your own providers:

Database

Seeders

Seeders add fake or test data to the database. They live in database/seeders/, implement Phast\Database\SeederInterface, and receive dependencies (e.g. ConnectionInterface) via constructor injection. Only the seeders listed in config/database.php under the seed key are run when you execute the seed command.

To run your seeders, add their class names (no namespace) to config/database.php:

You can insert data via the raw connection or using models. Generate a new seeder with php console g:seeder SeederName.

The default database configuration in .env.example:

Emails

MailCatcher is configured to catch all emails. Configure your .env to use SMTP:

Frontend Environment Variables

Frontend environment variables are prefixed with VITE_ and are available via import.meta.env:

Development: Set VITE_API_BASE_URL=https://api.local.dev in .env for separate API container.

Production: Leave unset (defaults to /) when PHP and frontend are served together by Apache.

The .env.example file includes:

Frontend Development

This skeleton includes a modern frontend setup with Vite and React.

Frontend Structure

Development Workflow

The frontend development server runs automatically in Docker via the web service. It provides:

Frontend Commands

Development Server

The Vite dev server runs automatically in Docker. To run it locally:

Build for Production

Build the frontend for production:

This compiles TypeScript, bundles assets, and outputs to public_html/.

Lint Code

Check code quality:

API Integration

The frontend includes an example API connection test that calls /api/status. The API endpoint returns a simple 200 OK response to verify connectivity.

Production Build

The Dockerfile includes a multi-stage build that:

  1. Builds the frontend using Node.js in a separate stage
  2. Copies the built assets to the PHP container
  3. Serves everything together via Apache

This ensures optimized production builds while keeping development fast with HMR.

Development

Viewing Logs

View application logs:

View worker logs:

Executing Commands

Run any PHP command in the web container:

Access the container shell:

Stopping Services

Stop all services:

Stop and remove volumes:

Documentation

For complete documentation, visit the Phast Framework documentation.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open-sourced software licensed under the MIT license.

Credits

Built with Phast Framework.


All versions of app with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
phastasf/framework Version ^1.0.0
vlucas/phpdotenv Version ^5.6
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/app contains the following files

Loading the files please wait ...