Download the PHP package jianastrero/jugger-api without Composer

On this page you can find all versions of the php package jianastrero/jugger-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 jugger-api

Jugger API

Create API using CRUD | Code-Free API creation

GitHub release GitHub commits GitHub issues GitHub license


screenshots

Description

Jugger API makes creating API's the easiest way possible on laravel. It runs together with your app and can be found at http://yourdomain.com/jugger-api. It depends on Passport, dbal and VueJS. Laravel Passport for OAuth on API's, and VueJS for the web to create your API's. dbal is used for transformation / mutation. Jugger API follows best practices for API development.

Dependencies

Features

Default Override through request Method slug
select columns OK OK GET /api/v1/jugger-api-routes?cols=id,model_name
sort by column OK OK GET /api/v1/jugger-api-routes?sort=+id or
/api/v1/jugger-api-routes?sort=-id
search or filter OK OK GET /api/v1/jugger-api-routes?q=slug:user or
/jugger-api-routes?q=users or
/jugger-api-routes?q=slug:user,users
specify items per page OK OK GET /api/v1/jugger-api-routes?items=24
resource slug GET POST PUT DELETE
/api/v1/jugger-api-routes Returns a list Creates an item Updates multiple items Delete multiple items
/api/v1/jugger-api-route/1 Returns an item 404 Updates an item Delete an item

Features planned

Installation

1.A Require the package

composer require jianastrero/jugger-api

1.B Require laravel passport

Laravel 5.6 up

composer require laravel/passport

Laravel 5.5

composer require laravel/passport=~4.0

Laravel 5.4

composer require laravel/passport=~2.0

2. Depending on your laravel version, you may need to add this to config/app.php

3. Publish Jugger API resources

php artisan vendor:publish --tag=jugger-api

4. Setup config with db credentials

5. Migrate your app, passport and jugger's tables (This is both for JuggerAPI and passport)

php artisan migrate

6. Seed Jugger API with its own

php artisan jugger:seed

7. Create your jugger api admin account (default username: juggeradmin, default password: AdminPassword)

php artisan jugger:admin or php artisan jugger:admin myadminuser myadminpassword

Passport (for OAuth) read more on: Laravel Passport

8. Install passport

php artisan passport:install

9. use trait HasApiToken on User model

10. Add Passport::routes on AuthServiceProvider

11. Set the driver for api and add Jugger API admin's guards to passport and add provider for jugger admins on config/auth.php

VueJS

12. Install npm packages

npm install

13. Install npm vue session

npm install vue-session

14. Let web pack recognize sources (webpack.mix.js)

15. Compile sources

npm run dev

How to use

Run your web app(php artisan serve) then open your favorite web browser and navigate to http://127.0.0.1:8000/jugger-api From here, you could use any user you already have to login. If you dont have a user, better create one. On Future changes JuggerAPI will have its own login account such that it wont interfere with your app. Remember that as of now, it is required to use email and password to get authenticated and be logged in.

Once logged in, you could then create new routes, edit, or delete. Also, be careful to delete the record for JuggerAPI because it will refrain you from creating, modifying, or deleting new records. To fix this, run php artisan jugger:seed again.

To make a model be recognized by JuggerAPI, your model should use the traits HasTable and CanMutate

When this is done, just refresh your page and this model will be available on add and edit modal selection.

To allow add and edit on a model, you need to define fillables

For automatic mutation, Jugger API utilizes the casts array of models to transform arrays. For files, use juggerCasts array. This will soon be changed on a newer version for automatic mutation.

NOTE: JUGGER API IS AUTOMATICALLY DISABLED ON PRODUCTION MODE(DEBUG OFF / FALSE). THIS IS TO PREVENT API'S FROM BEING ALTERED ON PRODUCTION

License

This software is released under the MIT license.


All versions of jugger-api with dependencies

PHP Build Version
Package Version
Requires doctrine/dbal Version ^2.8
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 jianastrero/jugger-api contains the following files

Loading the files please wait ....