Download the PHP package progrmanial/fast-api without Composer

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

FastAPI Framework

FastAPI is a lightweight, powerful PHP framework designed to make building APIs fast, simple, and efficient. It provides a comprehensive set of features and tools to streamline the development process, allowing developers to focus on writing clean and maintainable code.

🚀 Features

📦 Installation

Install FastAPI using Composer:

🏁 Quick Start

Basic Application Setup

🛠 Core Components

1. WebSocket Support - Real-time Communication

FastAPI includes a pure PHP WebSocket implementation for real-time communication. The WebSocket functionality is 100% backward compatible and integrates seamlessly with existing HTTP routes.

Basic WebSocket Server

Fluent API Configuration

Broadcasting Messages

WebSocket Connection Management

Multiple WebSocket Servers

WebSocket with HTTP Routes

WebSocket Server Methods

WebSocket Connection Methods

WebSocket Protocol Support

The WebSocket implementation supports the full WebSocket protocol:

Error Handling

Performance Considerations

2. Router Class - Advanced Routing

The Router class provides powerful routing capabilities with support for groups, middleware, and Laravel-style syntax.

Basic Routing

Route Groups

Organize routes with common attributes:

Laravel-Style Syntax

Fluent API

2. App Class - Application Management

The App class manages the application lifecycle with singleton pattern and built-in features.

App-Level Route Groups

The App class supports the same powerful route grouping features as the Router class:

Important: App-level groups use Router's middleware aliasing system. You must register middleware aliases with $app->registerMiddleware() before using them in groups.

WebSocket Support

FastAPI includes built-in WebSocket server capabilities for real-time applications:

WebSocket Features:

3. Request Class - HTTP Request Handling

Rich request object with dynamic properties and validation.

4. Response Class - HTTP Response Handling

Comprehensive response handling with multiple content types.

5. Token Class - JWT Token Management

Complete JWT token handling with encryption support.

6. CustomTime Class - Advanced Date/Time Utilities

Powerful date and time manipulation with timezone support.

7. Middleware System

FastAPI provides two middleware systems: App-level (global) and Router-level (route-specific) with aliasing support.

App-Level Middleware (Global)

Router-Level Middleware (Route-Specific)

Key Differences:

See Complete Middleware Guide for detailed documentation.

8. Utility Classes

StringMethods - String Utilities

ArrayMethods - Array Utilities

🔧 Advanced Usage

Complete Healthcare API Example

Rate Limited API with Custom Middleware

📚 Documentation

🔒 Security Features

🚀 Performance

🔄 Migration and Compatibility

From Version 1.0.x to 1.1.x

✅ Zero Breaking Changes - All existing code continues to work:

Accessing New Features

🛠 Best Practices

1. Route Organization

2. Middleware Management

3. Error Handling

4. Response Consistency

🆕 Recent Improvements (v2.3.1)

App Class Refactoring & Clean Architecture

The App class has been completely refactored to eliminate duplicate methods and provide a cleaner, more maintainable architecture:

What Was Improved:

🔧 How It Works Now:

🎯 Benefits:

📚 Documentation:


🔍 Troubleshooting

Common Issues

  1. Middleware Not Executing

  2. Controller Not Found

  3. Route Parameters Not Working

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📚 Documentation

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Links


FastAPI Framework - Making PHP API development fast, simple, and powerful! 🚀


All versions of fast-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-redis Version *
firebase/php-jwt Version ^6.11
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 progrmanial/fast-api contains the following files

Loading the files please wait ....