Download the PHP package godie/overphp without Composer

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

OverPHP

Minimal, API-first PHP framework designed for serverless and traditional deployments.

Install

Scaffold a new project

Quick Start

Structure

Requirements

Routing

Register routes in index.php:

Dynamic parameters are passed to the handler:

Handler options:

Route Options

Dependency Injection

The framework includes a simple DI container. Controllers are resolved through it, so constructor dependencies are injected automatically:

Response Object

Controllers can return arrays (auto-serialized to JSON) or Response objects for full control:

Client Serving

Serve a static frontend (React, Vue, etc.) alongside your API. Enable in config:

Configuration

Copy config.example.php to config.php and edit, or use environment variables.

Core

Key Env Default Description
allowed_origins — ['http://localhost:5173'] CORS allowlist
route_prefix API_PREFIX /api API route prefix
controller_namespace CONTROLLER_NAMESPACE OverPHP\Controllers Controller namespace

Benchmark

Key Env Default
benchmark.enabled BENCHMARK_ENABLED false

When enabled, JSON responses include:

Security / CSRF

Key Env Default Description
security.csrf_enabled CSRF_ENABLED false Enable session-based CSRF protection

CSRF is disabled by default because the framework is API-first and typically used with stateless authentication (JWT, API keys). Enable it if you use session/cookie-based auth in a fullstack setup.

When enabled, state-changing requests (POST, PUT, PATCH, DELETE) must include a valid CSRF token via X-CSRF-TOKEN header or _csrf_token form field. Individual routes can opt out with 'skip_csrf' => true.

Client

Key Env Default
client.enabled CLIENT_ENABLED false
client.path CLIENT_PATH ./client
client.fallback_index — index.html

Database (optional)

Key Env Default
database.enabled DB_ENABLED false
database.driver DB_DRIVER mysql

The database layer uses a pluggable driver architecture. Ships with MySQL and SQLite.

MySQL

SQLite

SQLite requires no external server. Ideal for development, testing, or small-scale APIs.

Custom Driver

Implement DriverInterface or extend AbstractDriver:

Register before use:

Creating a Controller

Custom Controller Namespace

You can use your own namespace for controllers instead of the default OverPHP\Controllers. This is useful when integrating OverPHP into existing projects or when you prefer your own naming convention.

Using Environment Variable

Using Configuration File

Controller Example with Custom Namespace

The controller files should still be placed in src/Controllers/ directory, but you can use your preferred namespace in the class declarations.

License

MIT


All versions of overphp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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 godie/overphp contains the following files

Loading the files please wait ...