Download the PHP package kimihub/nemesis-framework without Composer

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

Nemesis Framework

Nemesis is a small PHP Framework that I've started to sustain when I realized I needed a lightweight, native, minimalistic and flexible tool to quickly develop MVC web app or REST api for testing and specific requests which require to work on a basic shared web hosting with few hardware resources.

Features

The architecture is built on well known patterns (Model Controller or Model View Controller) with a basic bootstraper / class autoloader and some procedural functions, so, what PHP can do properly without any extra-dependencies.

Core components

The core is customizable according to the components needed and their dependencies

Classes

Loader : autoloader

Hook : trigger a hook, depends to Loader

Session : manage a secure session, depends to Loader

Plugin : DEPRECATED

URL : get headers received, hash and output URLs, depends to Loader

Router : create routes, depends to Loader, URL

Api : manage a simple JSON Web Api with a class controller, depends to Loader, URL, Router

MVC : add all components to build a MVC app like a view builder, depends to Loader, Hook, URL, Routes

App : manage a web app built on a MVC pattern with a class controller, depends to Loader, Hook, URL, Routes, MVC

HTMLhelpers : helpers to build html forms, no dependencies

CSSmin : minify CSS, depends to Loader, Hook, MVC

Functions

String parser : strip_accents, strip_specialchars, beautify, minimize, excerpt, is_email, is_phone_fr, is_date, datetime, sanitize_output

File manager / Shorcuts : getperms, filename, extension, upload, download

CURL : url_get_contents

key : Key_Generator

Required PHP version and modules

Installation

Composer

Nemesis-Framework is now on packagist, so it can be required as a dependency with Composer :

https://packagist.org/packages/kimihub/nemesis-framework

URL Rewriting Configuration

For Apache Servers the content of the .htaccess file located to the server root directory is :

<IfModule mod_rewrite.c>
    #Symlinks maybe needed for URL rewriting
    Options +FollowSymLinks
    RewriteEngine On
    #if you want to exclude some directories from url rewriting
    #RewriteCond %{REQUEST_URI} !^/(site2|site3/.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
</IfModule>

And for Lighttpd Servers the content of Lighttpd.conf :

$HTTP["host"]  =~ "www\.mydomain\.com"{
    server.document-root = "/PathToServerRoot/"
    accesslog.filename   = "/PathToLogs/access.log"
    url.rewrite = (
        "^/(.+)/?$" => "/index.php/$1"
    )
}

index.php instructions

Require bootstraper

require_once 'nemesis.php';

To log php errors

get_errors(); // to view errors.log : http://mydomain.com/errors.log

To display php errors

display_errors();

If the core functions are required

core_functions();

If the autoloader is required

core_autoloader();

Router initialization

$loader = Loader::getInstance();
$loader->initClass('Router');

Example of a web app initialization

$blogApp = App::getInstance('blog', '1.0'); // the version is not required
$blogApp->run();
echo $blogApp;

More examples

For more examples, check the others repositories prefixed with "nemesis-"

Changelog

0.7

0.6

0.5

0.4

0.3

0.2

0.1


All versions of nemesis-framework with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 kimihub/nemesis-framework contains the following files

Loading the files please wait ....