Download the PHP package digbang/laravel-project without Composer

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

project-name

Installation

  1. Clone repository
  2. Start the containers
  3. Access the PHP container and:

    A. RUN composer config -g github-oauth.github.com <token> (To create the token go to: https://github.com/settings/tokens/new and set the repo permissions)

B. RUN composer install

C. RUN ln -s /proxies proxies

D. RUN composer build

Minio configuration

  1. ADD "127.0.0.1 s3" to your hosts file
  2. ACCESS http://localhost:9000/minio,
  3. Login with the access and secret keys located in docker-compose.yml.
  4. Create a bucket with some name. Add a R/W policy to the bucket.
  5. Configure the bucket name in your env file
  6. Change the filesystem driver to minio

Sentry configuration

  1. Configure your .env variables
  2. Enable Sentry on your .env file

System Configuration

Publish Assets

  1. php artisan vendor:publish --provider "Digbang\\Backoffice\\BackofficeServiceProvider" --tag assets --force

Compiling Assets (Vite)

Vite is a modern frontend build tool that provides an extremely fast development environment and bundles your code for production.

In order to serve the assets for development you should use the npm run dev command (that compile the assets and server then through localhost:3000), and for production builds you should use the npm run build command.

If you use Vite, make sure that your layout uses the @vite directive and points to the resources correctly: @vite(['resources/css/app.css', 'resources/js/app.js'])

For more information about Vite, please follow the official documentation: https://laravel.com/docs/9.x/vite

Patrol - Track vulnerable or outdated dependencies

Patrol is an elegant command-line tool that keeps your PHP Project's dependencies in check.

  1. composer patrol

Pint - Code Style fixer

Laravel Pint is an opinionated PHP code style fixer for minimalists. Pint is built on top of PHP-CS-Fixer and makes it simple to ensure that your code style stays clean and consistent.

  1. composer cs

SPECIAL DIRECTORIES

Permissions

Proxies (ensure the symlink exists...)

Repositories on Request

If you need a repository you may do this:

Example:

If you need a repository method that doesnt exist in ReadRepository, you must create a private method into your request.

Example:

HTTP Codes references

The next list contains the HTTP codes returned by the API and the meaning in the present context:

Please refer to https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for reference

Php Stan

You should now have a phpstan.neon file that allows you to configure the basics of this package.

https://github.com/nunomaduro/larastan https://phpstan.org/user-guide/getting-started

Php Insight

Config File

You should now have a config/insights.php file that allows you to configure the basics of this package.

https://phpinsights.com/get-started.html

Laravel Responder

Creating Responses

Creating Transformers

php artisan make:transformer ProductTransformer --plain

Handling Exceptions

Convert Custom Exceptions

In addition to letting the package convert Laravel exceptions, you can also convert your own exceptions using the convert method in the render method:

You can optionally give it a closure that throws the new exception, if you want to give it constructor parameters:

Creating HTTP Exceptions

An exception class is a convenient place to store information about an error. The package provides an abstract exception class Flugg\Responder\Exceptions\Http\HttpException, which has knowledge about status code, an error code and an error message. Continuing on our product example from above, we could create our own HttpException class:

You can also add a data method returning additional error data:

If you're letting the package handle exceptions, you can now throw the exception anywhere in your application and it will automatically be rendered to an error response.

https://github.com/flugger/laravel-responder

JWT Auth

Config File

You should now have a config/jwt.php file that allows you to configure the basics of this package.

Generate secret key

I have included a helper command to generate a key for you:

php artisan jwt:secret

This will update your .env file with something like JWT_SECRET=foobar

It is the key that will be used to sign your tokens. How that happens exactly will depend on the algorithm that you choose to use.

https://github.com/tymondesigns/jwt-auth

System Requirements

Overriding php configuration

Overriding php ini default configurations

In order to override .ini configurations, use the custom.ini file in ./docker/php/conf.d directory on the root of the project. After changing the file, you will need to rebuild your container: docker-compose up -d --build php.

It's recommended to change upload_max_filesize, post_max_size. Have in mind this values should be changed in all environments.

It's recommended to change memory_limit if you need it. In this case, only in dev environments.

Override extensions config

In order to override any extension setting you should be able to put the corresponding .ini file inside ./docker/php/conf.d folder, that is relative to the application root folder.

Remember, by convention any extension config file should be named as docker-php-ext-{extension name}.ini.

For example, if you wish to override opcache you should create the following file: ./docker/php/conf.d/docker-php-ext-opcache.ini and fill it with everything you need. Same for xdebug: ./docker/php/conf.d/docker-php-ext-xdebug.ini.

Then, copy those files from the host into the container, use the following command inside ./docker/php/Dockerfile: COPY conf.d /usr/local/etc/php/conf.d/

It will be reflected on the next docker-compose up --build

Notes


All versions of laravel-project with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0.2
ext-json Version *
cakephp/chronos Version ^2.3
digbang/backoffice Version ^9.0
digbang/doctrine-extensions Version ^3.0
digbang/safe-queue Version ^1.0
digbang/utils Version ^2.0
flugger/laravel-responder Version ^3.2
fruitcake/laravel-cors Version ^2.0
gedmo/doctrine-extensions Version ^3.2
laravel-doctrine/extensions Version ^1.4
laravel-doctrine/fluent Version ^1.2
laravel-doctrine/orm Version ^1.8
laravel/framework Version ^9.0
laravel/sanctum Version ^2.14
laravel/tinker Version ^2.7
php-open-source-saver/jwt-auth Version ^2.0
sentry/sentry-laravel Version ^2.11
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 digbang/laravel-project contains the following files

Loading the files please wait ....