Download the PHP package olegstan/laravel-rest without Composer

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

olegstan/laravel-rest Package Documentation

Overview

The olegstan/laravel-rest package offers a streamlined approach to building RESTful APIs with Laravel, emphasizing convention over configuration. It automatically sets up API routes and organizes the application structure to enhance the development of REST APIs. This document guides you through the installation, setup, and basic usage of the package.

Installation

Begin by installing the package through Composer:

This command adds the olegstan/laravel-rest package to your project, enabling its features and functionalities.

Associated Package

For optimal use of olegstan/laravel-rest, install the related laravel-request package, which complements the main package by handling request validations and more. Find it at:

Configuration

After installation, publish the package's assets and configurations to your project:

This command copies necessary files into your project, setting the stage for the API's structure and behavior.

Automatic API Routing

With the package published, API routes are automatically configured. The routing convention follows the pattern:

This pattern facilitates direct access to controller methods via API endpoints. For instance, to access the postStore method in ClientController, you would use:

Project Structure

The package organizes your Laravel project in a manner conducive to API development, as follows:

Controllers and Requests

Example request handling:

Handling Data in Controllers

Data sent to an endpoint, such as in the example above, is easily retrievable in the controller:

Support

For questions or further assistance with the olegstan/laravel-rest package, please reach out to [email protected].


All versions of laravel-rest with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
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 olegstan/laravel-rest contains the following files

Loading the files please wait ....