Download the PHP package codificio/carpentree-core without Composer

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

Carpentree Core

Requirements

Installation

Usage

Authorization and authentication

CORS

CORS Middleware is base on https://github.com/barryvdh/laravel-cors.

CORS middleware is already included in api routes group.

In order to make your own configuration, publish CORS config file:

Note: When using custom headers, like X-Auth-Token or X-Requested-With, you must set the allowedHeaders to include those headers. You can also set it to array('*') to allow all custom headers.

Note: If you are explicitly whitelisting headers, you must include Origin or requests will fail to be recognized as CORS.

Note: Because of http method overriding in Laravel, allowing POST methods will also enable the API users to perform PUT and DELETE requests as well.

Enable social authentication

Add credentials for the OAuth services your application utilizes. These credentials should be placed in your config/services.php configuration file, and should use the key equals to provider name (e.g., facebook, google, github etc.).

For example:

We will use Socialite just for retrieving user details from an access token so we can fill client_id, client_secret, redirect with empty strings (not NULL) because they won’t be used in our flow.

Roles and permissions

There is a Super Admin role who can do everything. To make sure you correctly pass the check on this role, you must use the native Laravel @can and can() directives.

It is generally best to code the app around permissions only. That way you can always use the native Laravel @can and can() directives everywhere in your app.

Middleware

Since this package base his roles and permissions system on spatie\laravel-permission, if you want to use middlewares, you need to add them inside your app/Http/Kernel.php file.

Manage permissions

Permission final name will be group-key.permission-key adn you can refer to it from the code, for example, in this way:

Assign statuses to Eloquent models

We use laravel-model-status package by Spatie. Look at their documentation.

Assign categories to Eloquent models

To add categories support to your eloquent models simply use \Carpentree\Core\Traits\Categorizable trait.

For his feature, we were inspired by https://github.com/rinvex/laravel-categories. Read it documentation for more info.

Full text search

TODO (Algolia)

Meta fields

Assign HasMeta trait to a model in order to enable meta fields for a model. In order to maintain both flexibility and simplicity, you can consider value attributes of the meta fields as JSON container.

Localization

Publish configuration with this command:

After that, available locales are set in configuration file config\translatable.php.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

License

MIT. Please see the license file for more information.


All versions of carpentree-core with dependencies

PHP Build Version
Package Version
Requires algolia/algoliasearch-client-php Version ^2.2
barryvdh/laravel-cors Version ^0.11.2
astrotomic/laravel-translatable Version ^11.9
kalnoy/nestedset Version ^5.0
illuminate/support Version ^6.0
laravel/socialite Version ^5.5
laravel/passport Version ^9.3.2
laravel/scout Version ^8.6
coderello/laravel-passport-social-grant Version ^3.0
illuminate/contracts Version ^6.0
illuminate/http Version ^6.0
illuminate/notifications Version ^6.0
illuminate/auth Version ^6.0
illuminate/container Version ^6.0
illuminate/database Version ^6.0
doctrine/dbal Version ^2.10
laravel/tinker Version ^1.0
plank/laravel-mediable Version ^4.3
spatie/laravel-permission Version ^3.18
predis/predis Version ^1.1
teamtnt/laravel-scout-tntsearch-driver Version ^8.3
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 codificio/carpentree-core contains the following files

Loading the files please wait ....