Download the PHP package hackpack/hackmini without Composer

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

HackMini

Mini framework written in Hack

Features

Being somewhere between a "micro" framework and a "bloated" framework, HackMini provides a balanced set of features that eases the burden on developers desiring a flexible, maintainable, clean codebase.

Type Safety

HackMini uses Hack's strict mode as much as possible, thus all of the framework components must be fully typed. What this means for you is that all of your code can be type safe, even when depending on HackMini's functions or classes.

Type safety is eminently important for code maintainability and flexibility. When your code is type safe and you alter the interface for any function or class, the type checker will tell you all the other places that must be updated to accommodate the new feature. It's like an entire class of integration tests already written for you!

Router and Middleware Stack

HackMini makes heavy use of user defined attributes to allow for easy routing. Attributes are also used to define route specific middleware stacks.

Defining a Route Handler

Route handlers must either be plain functions or static class methods. The route handler must be annotated with the <<Route('/path')>> attribute. The path attribute parameter must be unique application-wide.

HTTP Message Abstraction (PSR-7... ish)

Factory Container

Command Line

Non-Features

There are some features of other frameworks that are purposefully not implemented in HackMini. In the age of Composer, we developers only need enough scaffolding to get the request to our code, and to get the response back to the user. For the stuff between, we have a plethora of tools available, and HackMini makes it easy to use the tools most appropriate for your awesome idea.

Magic

The driving goal of HackMini is clarity of code. This is accomplished by using strict mode as much as possible such that the framework code gives the Hack Typechecker as much information as possible.

If anything in the HackMini implementation is unclear or the code is poorly documented, please open an issue on GitHub. Better yet, submit a pull request!

Database Abstraction

There are many database abstraction solutions, and there is no reason for the scaffolding surrounding your application to force any one particular way of interacting with databases. HackMini deliberately eschews any database interactions, giving you the freedom to use the solution you like!

Templates

Just as there are many database solutions, there are many template engines, including XHP! HackMini provides the PSR-7 compliant request and response abstractions, making it easy to send whatever data you like to your users.

Configuration

HackMini favors developer experience by minimizing the amount of configuration required. The minimum is zero, and that's what HackMini needs.

There are no configuration files specific to HackMini. The web server may need some configuration, system dependencies may need to be installed, but HackMini just does what it does best... makes writing clean code in your style easy.


All versions of hackmini with dependencies

PHP Build Version
Package Version
Requires hhvm Version ^3.11
fredemmott/definition-finder Version ^1.1.1
fredemmott/hhvm-autoload Version ^0.1.0
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 hackpack/hackmini contains the following files

Loading the files please wait ....