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

Update example script to version stable ^2.0 #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmytroklyman
Copy link

@dmytroklyman dmytroklyman commented Apr 8, 2021

I updated example.php script to work with stable ^2.0 versions.

@dmytroklyman dmytroklyman changed the title Update example script to version 2.1.* Update example script to version stable ^2.0 Apr 8, 2021
Copy link
Owner

@AbcAeffchen AbcAeffchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your pull request. There are still a few issues to resolve.

@@ -18,7 +18,8 @@
use AbcAeffchen\SepaUtilities\SepaUtilities;
use AbcAeffchen\Sephpa\SephpaDirectDebit;

require_once '../src/Sephpa.php';
chdir(dirname(__DIR__));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line seems to be unnecessary.

@@ -18,7 +18,8 @@
use AbcAeffchen\SepaUtilities\SepaUtilities;
use AbcAeffchen\Sephpa\SephpaDirectDebit;

require_once '../src/Sephpa.php';
chdir(dirname(__DIR__));
require __DIR__ . '/../vendor/autoload.php';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The vendor folder is not part of the repository. There should be a note, that is requires composer. Additionally a comment with instructions to use this without composer would be nice. This is basically using src/autoloader.php and SepaUtilities.php that needs to be downloaded separately.

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

Successfully merging this pull request may close these issues.

4 participants