Download the PHP package ci2lara/codeigniter_migration without Composer

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

CodeigniterMigration To Laravel

CodeigniterMigration is a package to integrate an already started Codeigniter-Session in Laravel 5.

Requirements

The package includes ServiceProvider and Facade for easy Laravel integration. This is particularly useful if you want to slowly migrate legacy code to laravel and Codeigniter is still responsible for the Login & Authentication. You can read out the Userdata-Values of the current Codeigniter-session (via cookie-handling).

Installation

Require this package with composer:

After updating composer (composer update), add the ServiceProvider to the providers array in config/app.php

Service Provider

In your app config, add the CodeigniterServiceProvider to the providers array.

Facade

You have to use the facade, add it to the aliases array in your app config

Configuration (e.g. CI-Cookie-Name)

Copy the package config to your local config with the publish command:

To change the configuration, uncomment the values (e.g. sess_table_name or sess_cookie_name) in the new config/ci_session.php

Set up the Middleware to read the session

You should only use unencrypted cookies in codeigniter - so Laravel can directly access to the cookie. Because of security-reasons you have to allow Laravel to use this unencrypted Cookie.

Change the following Line in your app/Http/Kernel.php in the "$middleware"-Array

to

The Package-Middleware only disable the Cookie-Encryption for the configured Cookie-Name only (Default: ci_session, see config/ci_session.php)

Access to the Codeigniter Session in Laravel 5

Shortly: CodeigniterSession::getUserData()

e.g.

Access to some Project-Config-Variables or CI-Config-Variables

You can expand your CI-Code

e.g. in your CodeIgniter-Login-Handling

In Laravel you can simply access with the following code:

Try it out

Contributing

Contributions to the CodeigniterMigration are welcome. Please note the following guidelines before submiting your pull request.

License

CodeigniterMigration is licensed under the MIT License.

Copyright 2015 [Andreas Schwinger]


All versions of codeigniter_migration with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
laravel/framework Version 5.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 ci2lara/codeigniter_migration contains the following files

Loading the files please wait ....