Download the PHP package deployed/myth-to-shield without Composer

On this page you can find all versions of the php package deployed/myth-to-shield. 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 myth-to-shield

CodeIgniter MythToShield

MythToShield is tool to migrate from MythAuth to CodeIgniter Shield. The main purpose of this library is to migrate the database to the Shield structure and keep the existing user data. t's up to developer to ensure that project code works properly with the Shield library.

Getting Started

Prerequisites

Usage of MythToShield requires the following:

Installation

Backup you database

Always create a backup of your database first in case anything goes wrong during the migration process.

Remove MythAuth Library

Remove the Myth auth from Autoload config. Also make sure to remove the MythAuth Config files if you have any in the APP_NAMESPACE or anywhere else in the project since it will conflict with the Shield library

Install Shield library

Add the Shield library to $psr4 namespaces in Autoload Config

Install Settings library

Shield should automatically pull settings library but this might change in future to be sure install the settings library directly into the project

Add the Settings library to $psr4 namespaces in Autoload Config

Install MythToShield library

Add the MythToShield library to $psr4 namespaces in Autoload Config

Configure Shield

Manually create shield config file or registrar if you want to override default table names from shield. php spark shield:setup and shield migrations should not be executed. The MythToShield migrator will create the tables. The settings library migrations can be executed, but it is not required since the MythToShield migrator will take care of those as well.

Additional Commands - This step is optional

MythToShield library provides MythToShield config class which can be used to execute additional commands. See the config file for more information

6. Run the migration command.

It should return MythToShield migration completed successfully message

Compatibility Mode

Myth Auth uses different method to store and verify the password hashes. In order for Shield to work with existing password additional column named myth_hash is added to the identities table. The initial value in this column is set to 1 for every user account.

To process the Myth Auth hashes MythCompatSession authenticator class is loaded to replace the shield session authenticator via registrar. When user tries to logg in for the first time via shield myth_hash value is checked if it contains 1 the user password is verified using the Myth Auth method. On first successful login new password hash is generated and 0 is set as the myth_hash value. When myth_hash is 0 MythCompatSession authenticator uses the more secure Shield hashing method and does not allow users to log in with Myth Auth password hashes.

Uninstalling the library

MythToShield library should be kept installed as long as Myth Auth password hash compatibility is needed. When the compatibility is not needed anymore the myth_hash column should be removed from the identities table first.

There is a command for removing the database column

Once the database is cleaned the MythToShield library can also be deleted.

Remove the library from the Autoload Config

Remove the composer package

Contributing

MythToShield does accept and encourage contributions from the community in any shape. It doesn't matter whether you can code, write documentation, or help find bugs, all contributions are welcome. See the CONTRIBUTING.md file for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.


All versions of myth-to-shield with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4.3 || ^8.0
codeigniter4/settings Version ^2.1
codeigniter4/shield Version >=1.0.1
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 deployed/myth-to-shield contains the following files

Loading the files please wait ....