Download the PHP package bobanum/restinpeace without Composer

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

RestInPeace: Database-Driven REST API Module with HATEOAS Support

ATTENTION: This project is still in development and is not ready for production use. Part of this documentation has been create by the OpenAPI Generator project.

Introducing RestInPeace, a powerful and versatile PHP module designed to streamline the creation of RESTful APIs by seamlessly analyzing your database structure and establishing intelligent relationships and entry points. This framework-agnostic solution empowers developers to effortlessly expose their database resources through a RESTful interface, all while adhering to the principles of HATEOAS (Hypermedia As The Engine Of Application State).

Key Features:

  1. Database Intelligence:

    • RestInPeace dynamically analyzes your database schema, identifying tables, relationships, and data types automatically.
    • Provides a comprehensive understanding of your data model, ensuring accurate representation in the API.
  2. Automatic Relation Mapping:

    • Establishes relationships between different database entities without manual intervention.
    • Recognizes foreign keys and generates links between associated resources, enhancing the API's navigability.
  3. Resource Exposure:

    • Effortlessly exposes database tables as RESTful resources, allowing seamless CRUD (Create, Read, Update, Delete) operations.
    • Supports customizable resource naming conventions for tailored API endpoints.
  4. HATEOAS Support:

    • Implements HATEOAS principles by enriching API responses with hypermedia links.
    • Clients can dynamically discover and navigate the API structure through links, fostering a self-descriptive and discoverable API architecture.
  5. Smart Entry Points:

    • Automatically generates intelligent entry points based on database structure, allowing clients to explore the API effortlessly.
    • Ensures a straightforward onboarding process for developers unfamiliar with the database schema.
  6. Customization Options:

    • Offers configuration options for developers to fine-tune API behavior according to specific project requirements.
    • Enables the inclusion or exclusion of specific fields, relationships, or resources based on project needs.
  7. Security Measures:

    • Implements standard security practices to protect against common API vulnerabilities.
    • Supports authentication and authorization mechanisms to control access to sensitive data.
  8. Framework Agnostic:
    • Designed to seamlessly integrate with various PHP frameworks or used as a standalone module, ensuring flexibility and compatibility with different project setups.

Get Started with RestInPeace:

RestInPeace takes the complexity out of building REST APIs by leveraging your database structure intelligently, fostering a developer-friendly environment, and adhering to HATEOAS principles for enhanced discoverability. Boost your development productivity and create robust, self-descriptive APIs effortlessly with RestInPeace.

Installation

You can easily install it via Composer using the following steps:

Step 1: Create a new or navigate to an existing project

Ensure you have a PHP project set up where you want to integrate RestInPeace. If you don't have an existing project, create a new one using your preferred structure.

Step 2: Open a terminal or command prompt

Navigate to the root directory of your PHP project using the terminal or command prompt.

Step 3: Run composer require command

Use the following Composer command to install RestInPeace:

Composer will automatically fetch the RestInPeace module and its dependencies and integrate it into your project.

Step 4: Configure RestInPeace

Depending on the design of RestInPeace, it might require some configuration. Check the module's documentation for any configuration steps or required settings. Configuration may involve specifying database connection details, API routing, or other customization options.

Step 5: Autoload the composer dependencies

Ensure that you have autoloaded the Composer dependencies in your project. If your project doesn't already have an autoload file (usually named vendor/autoload.php), make sure to include it in your project files:

Setting .env

Parameters start with RESTINPEACE_ or RIP_ and are in uppercase. The following parameters are available:

Using Database Views

if HIDE_SUFFIXED_VIEWS is set to true, all views are included in the schema. Otherwise, only views without suffixe are exposed.

The suffixes

To create a suffixes view for a table, create a view with the same name as the table, but with the suffix preceded by a double underscore (__).

The schema cache

The config file ({CONFIG_PATH}/restinpeace.php);

Nomenclature

ALL SINGULAR or ALL PLURAL or MIXED


All versions of restinpeace with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.33
doctrine/inflector Version ^2.0
vlucas/phpdotenv Version ^5.6
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 bobanum/restinpeace contains the following files

Loading the files please wait ....