Download the PHP package lukman-ss/intisari-api without Composer

On this page you can find all versions of the php package lukman-ss/intisari-api. 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 intisari-api

Intisari API

A lightweight RESTful API starter built on top of IntisariPHP.

Requirements

Installation

Create a new project using Composer:

Environment Setup

Copy the example environment file:

Important: The default .env.example is secured for production. To run the API locally, open your .env file, comment out the production database and CORS settings, and uncomment the LOCAL DEVELOPMENT OVERRIDES section at the bottom.

Ensure the local SQLite database file exists (if using local development overrides):

(Alternatively, you can run make install if you are on a Unix-based system to handle both setup steps.)

Run Development Server

To start the built-in PHP development server, use the composer script:

The API will be available at http://localhost:8000.

Database Migration

Run the database migrations to set up the default tables (users, posts, api_tokens):

If you need to refresh the database (drop and re-run all migrations) and optionally seed initial data:

Authentication Flow

This project uses a simple Bearer Token authentication mechanism.

  1. Register: Send a POST request to /api/auth/register with name, email, and password. You will receive a token in the response.
  2. Login: Send a POST request to /api/auth/login with email and password to obtain a new token.
  3. Usage: Include the token in the Authorization header of subsequent requests:

  4. Logout: Send a POST request to /api/auth/logout to revoke your current token.

Example API Request

Here is an example of creating a new post:

Testing

The project is fully tested using PHPUnit, with automatic in-memory SQLite isolation for feature tests.

To run the test suite:

To run syntax checks and code validation:

Project Structure

Secure Deployment

To ensure this API operates securely in a production environment, strictly adhere to the following baseline requirements. For complete details, see our SECURITY.md.

License

This project is open-sourced software licensed under the MIT license.


All versions of intisari-api with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
lukman-ss/intisari Version ^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 lukman-ss/intisari-api contains the following files

Loading the files please wait ...