Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does this plugin is only support composer project? #11

Open
nevernet opened this issue Dec 10, 2015 · 7 comments
Open

does this plugin is only support composer project? #11

nevernet opened this issue Dec 10, 2015 · 7 comments

Comments

@nevernet
Copy link

my project is not composer project.
it's plan php project, can i use this plugin?

@mkusher
Copy link
Member

mkusher commented Dec 10, 2015

Yes, with a latest version of padawan.php you can use it with plain php. But you'll need to put empty composer.json to the project root

@nevernet
Copy link
Author

i have installed padawan.php yestoday, i think it's latest version.

my compose.json file as below:

{
    "name": "project name",
    "description": "project description",
    "authors": [
        {
            "name": "Daniel",
            "email": "[email protected]"
        }
    ],
    "require": {}
}

i when i run command : PadawanGenerateIndex, i still got error code: 255.
please let me now how to investigate ?

@mkusher
Copy link
Member

mkusher commented May 10, 2016

with a composer.json file in a project root it should work properly. Is the issue still valid?

@dvaganov
Copy link

I also faced with this problem earlier.
You need not only have composer.json in the project root directory, but also do composer install to fill vendor/ directory.

@mkusher
Copy link
Member

mkusher commented May 14, 2016

@dvaganov what do you mean? If you are using latest padawan, then you don't need vendor dir at all

@dvaganov
Copy link

@mkusher
I use latest no-dev version from packagist.org (v0.2.1). And to generate index I need to do composer install, otherwise padawan can't open stream require(vendor/composer/autoload_classmap.php).

@mkusher
Copy link
Member

mkusher commented May 14, 2016

@dvaganov oh, yes, my fault. In 0.2.1 there is still a code that tries to load classmap that is actually not used. But you can create fake autoload_classmap.php so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants