I
I
ImPuuLsE2015-06-26 08:35:22
Yii
ImPuuLsE, 2015-06-26 08:35:22

How to install RNCryptor in Yii2?

Hello! There is such a library - https://github.com/RNCryptor/RNCryptor-php . I would like to use it in the framework, but no matter how I tried to prescribe namespaces, I don’t see it (I threw it into the extensions folder):

"message":"Class 'app\\extensions\\RNCryptor\\lib\\Decryptor' not found","code":1,"type":"yii\\base\\ErrorException",

Advise how to do it right?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ImPuuLsE, 2015-06-26
@ImPuuLsE

add to composer.json:

"require": {
       "ext-mcrypt": "*"
    },
    "require-dev": {
      "rncryptor/spec": "3.0.1",
      "rncryptor/rncryptor": "*",
      "phpunit/phpunit": "3.7.*"
    },

composer update

P
Papa, 2015-06-26
Stifflera @PapaStifflera

Install via composer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question