PHPackages                             zhiephie/slim-rajaongkir - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. zhiephie/slim-rajaongkir

ActiveLibrary[HTTP &amp; Networking](/categories/http)

zhiephie/slim-rajaongkir
========================

Check Ongkos Kirim RajaOngkir Slim Framework

05PHP

Since Oct 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/zhiephie/slim-rajaongkir)[ Packagist](https://packagist.org/packages/zhiephie/slim-rajaongkir)[ RSS](/packages/zhiephie-slim-rajaongkir/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

slim-rajaongkir
===============

[](#slim-rajaongkir)

Cek Ongkos Kirim (Slim+ RajaOngkir)

Install
-------

[](#install)

Install the latest version using composer.

```
$ composer create-project --no-interaction --stability=dev zhiephie/slim-rajaongkir app
```

Slim Framework
==============

[](#slim-framework)

[![Build Status](https://camo.githubusercontent.com/531cde59ea005a2ee5dfd52a8c70ffbbc9f7b9923149ea174f2dab2b470ac9d5/68747470733a2f2f7472617669732d63692e6f72672f736c696d7068702f536c696d2e7376673f6272616e63683d6d6173746572)](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
--------

[](#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
---------------

[](#getting-started)

### Install

[](#install-1)

You may install the Slim Framework with Composer (recommended) or manually.

[Read how to install Slim](http://docs.slimframework.com/#Installation)

### System Requirements

[](#system-requirements)

You need **PHP &gt;= 5.3.0**. If you use encrypted cookies, you'll also need the `mcrypt` extension.

### Hello World Tutorial

[](#hello-world-tutorial)

Instantiate a Slim application:

```
$app = new \Slim\Slim();
```

Define a HTTP GET route:

```
$app->get('/hello/:name', function ($name) {
    echo "Hello, $name";
});
```

Run the Slim application:

```
$app->run();
```

### Setup your web server

[](#setup-your-web-server)

#### Apache

[](#apache)

Ensure the `.htaccess` and `index.php` files are in the same public-accessible directory. The `.htaccess` file should contain this code:

```
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:

```
AllowOverride All

```

#### Nginx

[](#nginx)

The nginx configuration file should contain this code (along with other settings you may need) in your `location` block:

```
try_files $uri $uri/ /index.php?$args;

```

This assumes that Slim's `index.php` is in the root folder of your project (www root).

#### HipHop Virtual Machine for PHP

[](#hiphop-virtual-machine-for-php)

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.

```
Server {
    SourceRoot = /path/to/public/directory
}

ServerVariables {
    SCRIPT_NAME = /index.php
}

VirtualHost {
    * {
        Pattern = .*
        RewriteRules {
                * {
                        pattern = ^(.*)$
                        to = index.php/$1
                        qsa = true
                }
        }
    }
}

```

#### lighttpd

[](#lighttpd)

Your lighttpd configuration file should contain this code (along with other settings you may need). This code requires lighttpd &gt;= 1.4.24.

```
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).

#### IIS

[](#iis)

Ensure the `Web.config` and `index.php` files are in the same public-accessible directory. The `Web.config` file should contain this code:

```

```

#### Google App Engine

[](#google-app-engine)

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`:

```
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:

```
$app = new Slim();

// Google App Engine doesn't set $_SERVER['PATH_INFO']
$app->environment['PATH_INFO'] = $_SERVER['REQUEST_URI'];

// ...
$app->run();
```

Documentation
-------------

[](#documentation)

How to Contribute
-----------------

[](#how-to-contribute)

*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.*

### Pull Requests

[](#pull-requests)

1. Fork the Slim Framework repository
2. Create a new branch for each feature or improvement
3. Send a pull request from each feature branch to the **develop** branch

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.

### Style Guide

[](#style-guide)

All pull requests must adhere to the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) standard.

### Unit Testing

[](#unit-testing)

All pull requests must be accompanied by passing unit tests and complete code coverage. The Slim Framework uses `phpunit` for testing.

[Learn about PHPUnit](https://github.com/sebastianbergmann/phpunit/)

Community
---------

[](#community)

### Forum and Knowledgebase

[](#forum-and-knowledgebase)

Visit Slim's official forum and knowledge base at  where you can find announcements, chat with fellow Slim users, ask questions, help others, or show off your cool Slim Framework apps.

### Twitter

[](#twitter)

Follow [@slimphp](http://www.twitter.com/slimphp) on Twitter to receive news and updates about the framework.

Author
------

[](#author)

The Slim Framework is created and maintained by [Josh Lockhart](http://www.joshlockhart.com). Josh is a senior web developer at [New Media Campaigns](http://www.newmediacampaigns.com/). Josh also created and maintains [PHP: The Right Way](http://www.phptherightway.com/), a popular movement in the PHP community to introduce new PHP programmers to best practices and good information.

License
-------

[](#license)

The Slim Framework is released under the MIT public license.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/68387cca97bf9ba67597557ce745ee2ce3cb949db3b711bf294601ed82adacaf?d=identicon)[zhiephie](/maintainers/zhiephie)

---

Top Contributors

[![zhiephie](https://avatars.githubusercontent.com/u/5674973?v=4)](https://github.com/zhiephie "zhiephie (12 commits)")

### Embed Badge

![Health badge](/badges/zhiephie-slim-rajaongkir/health.svg)

```
[![Health](https://phpackages.com/badges/zhiephie-slim-rajaongkir/health.svg)](https://phpackages.com/packages/zhiephie-slim-rajaongkir)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
