Download the PHP package jefhar/laravel-domain-oriented without Composer

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

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

About Domain Oriented Laravel

First things first, I didn't come up with this re-design of the Laravel Framework. This builds upon the very fine blog posts by Brent. The steps from the first chapter of Brent's blog have already been performed.

Keep your application layer in app/App directories. This is where you will find the Console, Exceptions, Http, and Providers directories. They work the same as the default Laravel application, they're just moved down one directory, but still in the \App namespace.

Place your Domain logic organized by domain concern within the app/Domain directory in the \Domain namespace. Support logic should be in the app/Support directory within the \Support namespace.

Caveats

Any php artisan make commands will place the newly created file where stock Laravel expects it to, not where Domain Oriented Laravel expects it to be. If you need artisan to create the file, you will need to manually move it to the correct directory. The default location is acceptable for database and test files.

Additional Changes

Docker

This comes with an opinionated docker stack for unit testing and deployment. Prepackaged with redis, mysql:8.0, nginx, php:7.4 and mailhog, this stack is easily customizable to suit your needs. Simply add or change a stanza within the Makefile contains commands to alias common docker-compose exec commands.

User Permissions

I have added the spatie/data-transfer-object and spatie/laravel-permission packages to the composer environment. After migrating and seeding, you will have three sample users ; a superAdmin, an employee, and a subscriber, all with password password and email address of <username>@example.com.

The users all have sample roles and permissions which are defined as class constants in the UserRoles and UserPermissions classes.

Modify/remove the migration and seeder files as needed. You can also add variables to your .env file if you want to change the passwords, emails, or usernames.

** Note that the laravel/ui composer package has not been included.

Composer

I added nunomaduro/larastan, sensiolabs/security-checker, and squizlabs/php_codesniffer to the development environment. Unless you rely soley on your IDE to tell you that you have possibly

The command composer phpcs will check your app/ and tests/ directories to make sure all files are in accordance with PSR-12.

composer phpcbf will correct any files that it can in those directories to make sure they follow PSR-12.

Running composer pretest will first check your composer.lock file to search for any advisories in the Security Advisories Database. If no security advisories for your packages exist, it will make sure that larastan approves of your code. If all is still good, your code will be examined to make sure it is in compliance with PSR-12 standards.

composer test will run your unit and feature tests.

Gitlab CI

Domain Oriented Laravel distribution also comes with a CI pipeline for GitLab. By default, it will install the composer and npm dependencies and create a cache, based upon your gitlab repository and branch. It will then, in parallel, run your unit and feature tests, and dusk tests.

If you have installed gitlab-runner locally, either through brew or a GitLab source, make ci will run your latest git commit through the unit and feature tests.

When you push a tagged commit to GitLab, the deployment stage will run. Before you do that, create an Envoy.php file. Also create a deployment user on your server with passwordless login:

You can also add a $LOG_SLACK_WEBHOOK_URL variable if you want slack notifications upon deployment.

Installation

From your command line, composer create-project jefhar/laravel-domain-oriented will download and install the framework. From there, make will build a base docker container for your development environment. After the container has been created, make docker will create all the images needed for a complete development environment. If you do not need MailHog running just yet, make deploy will boot all containers except MailHog. To install composer dependencies, make composerinstall, and to update composer dependencies, make composerupdate. Installing npm dependencies is through make yarninstall. Use make yarnupgrade to upgrade the npm dependencies.

Of course, creating your CSS and JavaScript resources are also make commands: make npmdev, make npmprod and make npmwatch will create your resources. Similar make commands exist for phpcs, phpcbf and a pretest.

From within the php-fpm container, make refresh will drop your database, migrate all tables, and seed sample users.

Update your .env file and browse to http://localhost:8080.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

If you don't feel like reading, Laracasts can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page.

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.


All versions of laravel-domain-oriented with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
fideloper/proxy Version ^4.0
laravel/framework Version ^6.2
laravel/tinker Version ^2.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 jefhar/laravel-domain-oriented contains the following files

Loading the files please wait ....