Download the PHP package rush-app/core without Composer

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

RushApp Core package

Extending Laravel Model and Controller to simplify setup CRUD operations.

Installation guide:

  1. Install "Core" package with composer:

  2. Run installation command (this will publish config and language files):

  3. Run migrations:

Example for creating CRUD operations with translation:

  1. Create endpoint for entity (you can use Laravel resource routes):

  2. Create migration:

2.1. Create posts table:

2.2. Create post_translations table (IMPORTANT: name of translation table should be set in format: _translations) Note that you should use "language_id" key for relation with languages table:

  1. Create model (with translation model): 3.1. Post model:

3.2. PostTranslation model (IMPORTANT: use name for translation model in format: model class with suffix "Translation") Note that you should use "language_id" key for relation with languages table.

  1. Create CRUD controller:

Role management system

IMPORTANT: To use role management system you need to define middleware "check-user-action" for route. There are such tables that are responsible for role management system:

  1. roles - Contains role names which available for users. Roles can be attach to user with user_role table.
  2. actions - Contains action_name and entity_name. Action name defined as config rushapp_core.action_names and they match for CRUD operation names. Entity name - name of entity tables (example: posts, categories, etc.). Actions can be attached to roles with role_action table. Example: If role "Admin" contains action with action_name "index", "show", "store" and entity_name "posts" this means that user with such role can get all posts and create new post. And any other CRUD operations ("update", "destroy") are forbidden.
  3. properties - Contains columns for custom permission logic. There is one property predefined and provides by package: "is_owner". This property used to mark that CRUD operation can be performed only by owner By default it will check "user_id" as owner identifier. Example: If is_owner is true and linked to action this means that CRUD operations can be performed only by owner (except "store" operation), but if is_owner is false this means that ownership will be not checked for CRUD operations. This can be used, for "Admin" roles, which can perform CRUD operations for any entity. NOTE: If is_owner is true for "index" operation this means that user will get only entities where he set as owner.

Additional abilities for requests

  1. To perform CRUD operations with specified language, you need to set "Language" key in request header.
  2. Filtering abilities for "index" or "show" requests:

Registration and authorization

  1. Registration example. Returns JWT token (['token' => 'test-token']) // TODO
  2. To perform authorization you can add route with BaseAuthController, example:

    It returns JWT token (['token' => 'test-token']). To perform authorization request you need to set "email" and "password" fields.

P.S.

Detailed examples can be found here: https://github.com/Rush-App/laravel-core-example


All versions of core with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.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 rush-app/core contains the following files

Loading the files please wait ....