dev-master
9999999-dev https://github.com/zhiephie/slim-rajaongkirCheck Ongkos Kirim RajaOngkir Slim Framework
MIT
The Requires
- slim/slim 2.*
- twig/twig 1.*
- hok00age/rajaongkir ^1.0
- vlucas/phpdotenv ^2.0
- tuupola/slim-jwt-auth ^1.0
slim rajaongkir
Wallogit.com
2017 © Pedro Peláez
Check Ongkos Kirim RajaOngkir Slim Framework
Cek Ongkos Kirim (Slim+ RajaOngkir), (*1)
Install the latest version using composer. ``` bash $ composer create-project --no-interaction --stability=dev zhiephie/slim-rajaongkir app, (*2)
# Slim Framework [](https://travis-ci.org/slimphp/Slim) Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. Slim is easy to use for both beginners and professionals. Slim favors cleanliness over terseness and common cases over edge cases. Its interface is simple, intuitive, and extensively documented — both online and in the code itself. Thank you for choosing the Slim Framework for your next project. I think you're going to love it. ## Features * Powerful router * Standard and custom HTTP methods * Route parameters with wildcards and conditions * Route redirect, halt, and pass * Route middleware * Resource Locator and DI container * Template rendering with custom views * Flash messages * Encrypt cookie data * HTTP caching * Logging with custom log writers * Error handling and debugging * Middleware and hook architecture * Simple configuration ## Getting Started ### Install You may install the Slim Framework with Composer (recommended) or manually. [Read how to install Slim](http://docs.slimframework.com/#Installation) ### System Requirements You need **PHP >= 5.3.0**. If you use encrypted cookies, you'll also need the `mcrypt` extension. ### Hello World Tutorial Instantiate a Slim application: ```php $app = new \Slim\Slim();
Define a HTTP GET route:, (*3)
$app->get('/hello/:name', function ($name) {
echo "Hello, $name";
});
Run the Slim application:, (*4)
$app->run();
Ensure the .htaccess and index.php files are in the same public-accessible directory. The .htaccess file
should contain this code:, (*5)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
Additionally, make sure your virtual host is configured with the AllowOverride option so that the .htaccess rewrite rules can be used:, (*6)
AllowOverride All
The nginx configuration file should contain this code (along with other settings you may need) in your location block:, (*7)
try_files $uri $uri/ /index.php?$args;
This assumes that Slim's index.php is in the root folder of your project (www root)., (*8)
Your HipHop Virtual Machine configuration file should contain this code (along with other settings you may need).
Be sure you change the ServerRoot setting to point to your Slim app's document root directory., (*9)
Server {
SourceRoot = /path/to/public/directory
}
ServerVariables {
SCRIPT_NAME = /index.php
}
VirtualHost {
* {
Pattern = .*
RewriteRules {
* {
pattern = ^(.*)$
to = index.php/$1
qsa = true
}
}
}
}
Your lighttpd configuration file should contain this code (along with other settings you may need). This code requires lighttpd >= 1.4.24., (*10)
url.rewrite-if-not-file = ("(.*)" => "/index.php/$0")
This assumes that Slim's index.php is in the root folder of your project (www root)., (*11)
Ensure the Web.config and index.php files are in the same public-accessible directory. The Web.config file should contain this code:, (*12)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="slim" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Two steps are required to successfully run your Slim application on Google App Engine. First, ensure the app.yaml file includes a default handler to index.php:, (*13)
application: your-app-name version: 1 runtime: php api_version: 1 handlers: # ... - url: /.* script: public_html/index.php
Next, edit your index.php file so Slim knows about the incoming URI:, (*14)
$app = new Slim(); // Google App Engine doesn't set $_SERVER['PATH_INFO'] $app->environment['PATH_INFO'] = $_SERVER['REQUEST_URI']; // ... $app->run();
http://docs.slimframework.com/, (*15)
NOTE: We are only accepting security fixes for Slim 2 (master branch). All development is concentrated on Slim 3 which is on the develop branch., (*16)
It is very important to separate new features or improvements into separate feature branches, and to send a pull request for each branch. This allows me to review and pull in new features or improvements individually., (*17)
All pull requests must adhere to the PSR-2 standard., (*18)
All pull requests must be accompanied by passing unit tests and complete code coverage. The Slim Framework uses
phpunit for testing., (*19)
Learn about PHPUnit, (*20)
Visit Slim's official forum and knowledge base at http://help.slimframework.com where you can find announcements, chat with fellow Slim users, ask questions, help others, or show off your cool Slim Framework apps., (*21)
Follow @slimphp on Twitter to receive news and updates about the framework., (*22)
The Slim Framework is created and maintained by Josh Lockhart. Josh is a senior web developer at New Media Campaigns. Josh also created and maintains PHP: The Right Way, a popular movement in the PHP community to introduce new PHP programmers to best practices and good information., (*23)
The Slim Framework is released under the MIT public license., (*24)
Check Ongkos Kirim RajaOngkir Slim Framework
MIT
slim rajaongkir