Download the PHP package malinichevvv/lift-skeleton without Composer

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

Lift Skeleton — URL Shortener

A small, production-shaped URL-shortener microservice built on the Lift PHP micro-framework.

It is meant as a starting point: clone it, read it in five minutes, then replace the links resource with your own. Despite its size it exercises a real slice of the framework — attribute routing, request validation, the query builder, migrations, a cache layer, per-route middleware and a custom console command.

Quick start

create-project copies .env, generates an APP_KEY and runs the migrations for you. The service is now live on http://localhost:8000.

Endpoints

Method Path Description Auth
GET / Self-describing endpoint list —
GET /health Liveness + database probe (200 / 503) —
POST /links Create a short link X-API-Key
GET /links/{slug}/stats Click statistics for a short link —
GET /{slug} Redirect to the original URL —

POST /links accepts JSON:

slug is optional (a random one is generated); expires_in is optional (seconds until the link stops resolving).

Authentication

POST /links is guarded by ApiKeyMiddleware. Set API_KEY in .env and send it as the X-API-Key header. While API_KEY is empty every request is allowed — handy locally, but set a key before deploying.

Project layout

Console

vendor/bin/lift ships with the framework; this project adds a few commands:

Tests

Feature tests run against a fresh in-memory SQLite database — no setup, no external services.

Configuration

SQLite is the default and needs nothing. To use MySQL/PostgreSQL or Redis, uncomment the relevant block in .env. Redis, when configured, backs the slug → URL lookup cache.

Docker

Brings up the service (with lift serve) plus a Redis container.

License

MIT — see LICENSE.


All versions of lift-skeleton with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
malinichevvv/lift-php Version ^1.2
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 malinichevvv/lift-skeleton contains the following files

Loading the files please wait ...