Coder Social home page Coder Social logo

cfonb-parser's People

Contributors

dependabot[bot] avatar fezfez avatar gdecorbiac avatar guillaume-sainthillier avatar qdequippe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cfonb-parser's Issues

Finaly some cfonb from CIC

First of all thanks for this amazing package.

During parsing i encounter several issue parsing cfonb from CIC.

  • empty line can occur
  • some 01 lines can be ignored with pattern "** PAS DE MOUVEMENT CE JOUR **" and "------------------------------"

But the most annoying is that 05 line (OperationDetail) are on multi line.

Are you okay if i make a PR to fix this ? (knowing that you actually throw an Exception if multiple 05 line are found for the same 01 line)

Thanks in advance :)

Create a strict mode

Some cfonb files does not follow strictly the spec and have empty values where is must not be.

Actually the lib raise an exception during parsing, but user should be able to opt out this feature.

[QA] Handle multiple phpunit files

We need to keep BC & tests working from php 7.2 to php 8.

This lead us to keep 2 phpunit files, one for phpunit 8 and the other for phpunit 9.
Maybe the solution is to use phpunit 8 only for now.

WDYT @fezfez?

Unable to find a parser for the line

Hello

I have an error since 8 days.

From this code :

    /**
     * @return Statement[]
     */
    public function getStatements(Transaction $transaction): array
    {
        $content = wordwrap($transaction->getPlainOrderData(), 120, " \n", true);
        $reader = new Cfonb120Reader();

        return $reader->parse($content);
    }

Error :

Unable to find a parser for the line :
"0430004056800041EUR2 0001015354918281223 281223DE BRUYNE JULIETTE EI 0000000 "
(there is this space between EI and 0000000 '********' github remove it in this window.)

from :

/vendor/silarhi/cfonb-parser/src/Parser/FileParser.php dans Silarhi\Cfonb\Parser\FileParser::findSupportedParserForLine ร  la ligne 61

Can you help me please ?

reference mandatory in Operation

Hi!
I used your library today, and i have a little, i have an official bank extract where the reference field is empty in the 04 line.
So the contruct of the Operation object failed because the field 'reference' cannot be null.
Could you think it is possible to make it nullable (?string reference instead of string reference) ?
I know that in the documentation of the format, the field is mandatory, but if it is empty...
Thank you.
Sylvain

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.