Download the PHP package bymayo/porter without Composer

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

Porter for Craft CMS 5

Porter is a Craft CMS plugin that is the missing toolbox for all things users.

Features

Install

You can also install the plugin via the Plugin Store in the Craft Admin CP by searching for Porter.

Requirements

How to use

Delete Account

Allow users to delete their own account via a front end form. To enable this go to Settings > Porter and toggle the Delete Account field. Also edit the settings such as what confirmation keyword the user needs to type before their account is deleted.

The quickest way to add the form to your template is with using the deleteAccountForm method:

By default it will add a set of classes prefixed with porter__, but you can add customisation parameters so you can change the styling, for example if your using Tailwind CSS:

Property Default Description
redirect Plugin redirect setting When the users account is deleted, this is where they'll be redirected to.
confirmationClass porter__confirmation Class for the confirmation keyword
alertClass porter__alert Class for the flash that shows when a user account is deleted.
fieldClass porter__field Class for the input field.
fieldContainerClass porter__field-container Class for div that wraps label and input field.
fieldLabelClass porter__field-label Class for the input label.
buttonClass porter__button Class for the button.
buttonText Delete Account Text that appears in the button

If you want to have more control you can get the full template from bymayo/porter/src/templates/components/deleteAccountForm.twig.

With this method, you can also get the default template properties by using craft.porter.deleteAccountFormProperties() and pulling a specific property from it:

⚠️ Users will only be able to delete their own accounts if the permission setting "Delete Users" is enabled on the user, or user group.

⚠️ Admin users CANNOT delete their own accounts for security reasons

Deactivate Account

Allow users to deactivate their own account via a front end form. To enable this go to Settings > Porter and toggle the Deactivate Account field.

The quickest way to add the form to your template is with using the deactivateAccountForm method:

By default it will add a set of classes prefixed with porter__, but you can add customisation parameters so you can change the styling, for example if your using Tailwind CSS:

Property Default Description
redirect Plugin redirect setting When the users account is deactivated, this is where they'll be redirected to.
alertClass porter__alert Class for the flash that shows when a user account is deleted.
buttonClass porter__button Class for the button.
buttonText Deactivate Account Text that appears in the button

If you want to have more control you can get the full template from bymayo/porter/src/templates/components/deactivateAccountForm.twig

With this method, you can also get the default template properties by using craft.porter.deactivateAccountFormProperties() and pulling a specific property from it:

⚠️ Admin users CANNOT deactivate their own accounts for security reasons

Magic Link

Let users sign in quickly via a link that is emailed to their inbox. To enable this go to Settings > Porter and toggle the Magic Link field.

The quickest way to add the form to your template is with using the magicLinkForm method:

By default it will add a set of classes prefixed with porter__, but you can add customisation parameters so you can change the styling, for example if your using Tailwind CSS:

Property Default Description
redirect Plugin redirect setting When the users requests a login link, this is where they'll be redirected to.
alertClass porter__alert Class for the flash that shows when a user account is deleted.
fieldClass porter__field Class for the input field.
fieldContainerClass porter__field-container Class for div that wraps label and input field.
fieldLabelClass porter__field-label Class for the input label.
buttonClass porter__button Class for the button.
buttonText Send Magic Link Text that appears in the button

If you want to have more control you can get the full template from bymayo/porter/src/templates/components/magicLinkForm.twig

With this method, you can also get the default template properties by using craft.porter.magicLinkFormProperties() and pulling a specific property from it:

⚠️ Admin users CANNOT use magic links for security reasons

Block Burner / Disposable Emails

Block disposable and invalid emails to reduce spam sign ups. To enable this go to Settings > Porter and toggle the Block Burner / Disposable Emails field.

You will need to register at https://verifier.meetchopra.com/ to get a FREE API key.

Support

If you have any issues (Surely not!) then I'll aim to reply to these as soon as possible. If it's a site-breaking-oh-no-what-has-happened moment, then hit me up on the Craft CMS Discord - @bymayo

Roadmap


All versions of porter with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^5.0.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 bymayo/porter contains the following files

Loading the files please wait ....