Download the PHP package mortimer333/dullahan-project without Composer

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

Dullahan

Documentation below is basically cheat sheet to help development and might be outdated.

Installation

Security Cheat Sheet

https://cheatsheetseries.owasp.org/index.html

Swagger

https://symfony.com/bundles/NelmioApiDocBundle/current/index.html

https://zircote.github.io/swagger-php/guide/attributes.html

https://github.com/nelmio/NelmioApiDocBundle/issues/1990

https://swagger.io/docs/specification/about/

Security

https://symfony.com/doc/current/security.html

CSRF Token

if we have api platform the csrf token should be generated from FE and added to headers. Let's create it when user logs in, save in the cookie and reuse. It will have few infromation set in:

This should be enough to determinate when user suddenly changed and log him out. We will be also adding salted app secret for csrf.

Email validation

https://github.com/symfonycasts/verify-email-bundle

SECRETS

We will be using symfony vault - https://symfony.com/doc/current/configuration/secrets.html

Fixtures

To reset test DB and populate it new data use fixtures:

or

TESTS

We are using codeception (which is base on PHPUint)

PHP Mess Detector

To suppress warning use @SuppressWarnings(PHPMD.[warning name])

PHP Stan

Command:

To ignore single error use:

To ignore a batch of errors considers reading https://phpstan.org/user-guide/ignoring-errors and updating ./phpstan.neon

Known errors:

If you have previously run analysis as not current user that cache directory might have wrong owner. Change the owner to current user, and it should be fine

PHP Code Style Fixer

Config options - https://mlocati.github.io/php-cs-fixer-configurator/#version:3.13

PHP Code Sniffer

To ignore:

Psalm

To suppress warning @psalm-suppress InvalidReturnType more at https://psalm.dev/docs/running_psalm/dealing_with_code_issues/

Known problems: Can't create cache dir:

if you are running commands as a www-data then make sure that /var/www/.cache directory is created and www-data is an owner of it.

PHP

Ubuntu - update-alternatives --config php

BCMath

in php.ini change bcmath.scale to 2

JWT

https://jwt.io/

Header manager

https://web-token.spomky-labs.com/the-components/header-checker

Claim manager

https://web-token.spomky-labs.com/the-components/claim-checker

Key

Validate

  1. Unserialize the token
  2. For each signature/recipient (may be possible when using the Json General Serialization Mode):
    1. Check the complete header (protected and unprotected)
    2. Verify the signature (JWS) or decrypt the token (JWE)
    3. Check the claims in the payload (if any)

If an error occurred during this process, you should consider the token as invalid.

Header parameters have to be checked. You should at least check the alg (algorithm) and enc (only for JWE) parameters. The crit (critical) header parameter is always checked.

Nested Token

We wanna use nested tokens to signature and encrypt token - https://web-token.spomky-labs.com/advanced-topics-1/nested-tokens


All versions of dullahan-project with dependencies

PHP Build Version
Package Version
Requires mortimer333/dullahan Version 0.5.*
nelmio/api-doc-bundle Version ^4.10
symfony/flex Version ^2
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 mortimer333/dullahan-project contains the following files

Loading the files please wait ....