2017 © Pedro Peláez
 

library nearphp

Simple PHP Functional combination.

image

toolmao/nearphp

Simple PHP Functional combination.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Nearphp

Nearphp is a simple, open source PHP Functional combination. Include Router / Template ., (*1)

Install

If you have Composer, just include Nearphp as a project dependency in your composer.json. If you don't just install it by downloading the .ZIP file and extracting it to your project directory., (*2)

require: {
    "toolmao/nearphp": "dev-master"
}

Examples

This is with Nearphp installed via composer., (*3)

composer.json:, (*4)

{
   "require": {
        "toolmao/nearphp": "dev-master"
    },
    "autoload": {
        "psr-4": {
            "" : ""
        }
    }
}
````

.htaccess(Apache):

RewriteEngine On RewriteBase /, (*5)

Allow any files or directories that exist to be displayed directly

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d, (*6)

RewriteRule ^(.*)$ index.php?$1 [QSA,L], (*7)


.htaccess(Nginx):

rewrite ^/(.*)/$ /$1 redirect;, (*8)

if (!-e $request_filename){ rewrite ^(.*)$ /index.php break; }, (*9)

```, (*10)

The Versions

17/07 2018

dev-master

9999999-dev https://github.com/toolmao/nearphp

Simple PHP Functional combination.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

template php router

17/07 2018

1.0.0

1.0.0.0 https://github.com/toolmao/nearphp

Simple PHP Functional combination.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

template php router