Download the PHP package vtapp/vtphp without Composer

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

VtPhp

An independent, API-first PHP framework with a Laravel-inspired developer experience — built on PSR standards plus Symfony/Doctrine/Monolog components, with illuminate/database (Eloquent ORM), eftec/bladeone (Blade templating), and symfony/mailer (Mail) as opt-in, well-isolated dependencies for the features that benefit most from them.

Documentation

In-depth, per-topic guides live in docs/: routing, controllers, middleware, validation, resources, models, migrations, sessions & cookies & cache, authentication, views, mail, exceptions, the container, and the forge CLI.

Requirements

Getting started

Then visit http://127.0.0.1:8000/health or http://127.0.0.1:8000/api/v1/users.

By default DB_CONNECTION=sqlite, so php forge migrate creates database/database.sqlite automatically — no external database server needed to try the framework. php forge db:seed populates it with two sample users via Eloquent. Swap in mysql/pgsql in .env for a real database.

Project layout

src/ is the framework core (VtPhp\ namespace) and app/ is your application (App\ namespace) — both ship in this one repository for now. Per the framework's own "avoid overbuilding v1" principle, src/ can be extracted into standalone Composer packages later (see the multi-package layout described in the blueprint) once the contracts stabilize.

forge CLI

Architecture

Sample API endpoints

routes/api.php registers a sample User CRUD resource plus password-recovery and email-verification endpoints under the /api/v1 prefix:

Method URI Description
GET /api/v1/users List users
POST /api/v1/users Create a user (name, email, password, password_confirmation)
GET /api/v1/users/{id} Show a user
PATCH /api/v1/users/{id} Update a user (name, email — both optional)
DELETE /api/v1/users/{id} Delete a user (204 No Content)
POST /api/v1/password/forgot Request a password reset email (email)
POST /api/v1/password/reset Reset a password (email, token, password, password_confirmation)
POST /api/v1/email/verification-notification (Re)send the email verification link (email)
GET /api/v1/email/verify/{id}/{hash} Verify an email address via the emailed link

Notes:

Sessions, cookies & cache

In addition to the stateless api token guard, the framework ships Laravel-style session-based auth, cookie handling, and a pluggable cache layer (symfony/cache under the hood).

Method URI Description
POST /api/v1/login Log in (email, password) — sets a session cookie
POST /api/v1/logout Log out — invalidates the session
GET /api/v1/me Current authenticated user (requires the session cookie)

Database, seeding & Eloquent

app/Models/User.php is an Eloquent model (Illuminate\Database\Eloquent\Model), and app/Repositories/EloquentUserRepository.php is the default binding for UserRepositoryInterface. Migrations still use the Doctrine DBAL-based php forge migrate runner (database/migrations/); seeders are plain classes extending VtPhp\Database\Seeder (database/seeders/):

Blade views & Mail

Render a Blade view (from resources/views/) with the view() helper:

Define a Mailable and send it through the Mailer:

MAIL_MAILER defaults to log (writes the rendered email to the app log instead of sending it) so mail works out of the box with no SMTP server configured. Set it to smtp and configure MAIL_HOST/MAIL_PORT/MAIL_USERNAME/MAIL_PASSWORD in .env for real delivery.

What's not included yet

Following the blueprint's own v0.1 → v1.0 roadmap, this build covers Phases 1–9 (foundation, HTTP, routing, controllers, middleware, exceptions, database, validation, API resources) plus the CLI, Eloquent ORM, Blade templating, and mail. Authentication/authorization, cache, rate limiting, events, queues, filesystem drivers, and OpenAPI generation are the next phases — the config files and .env keys for most of them are already scaffolded in config/ to make that work additive rather than a rewrite.

Testing


All versions of vtphp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-json Version *
ext-mbstring Version *
ext-pdo Version *
psr/container Version ^2.0
psr/http-message Version ^2.0
psr/http-factory Version ^1.1
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/log Version ^3.0
psr/event-dispatcher Version ^1.0
psr/simple-cache Version ^3.0
psr/clock Version ^1.0
symfony/routing Version ^7.4
symfony/console Version ^7.4
symfony/dotenv Version ^7.4
symfony/process Version ^7.4
doctrine/dbal Version ^4.4
monolog/monolog Version ^3.12
nyholm/psr7 Version ^1.8
nyholm/psr7-server Version ^1.1
illuminate/database Version ^11.0 || ^12.0
eftec/bladeone Version ^4.0
symfony/mailer Version ^7.4
symfony/cache Version ^7.4.1
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 vtapp/vtphp contains the following files

Loading the files please wait ...