PackageTrack
Sign in Get early access

github.com/z7zmey/php-parser

v0.7.2 #1760 most downloaded on Go modules z7zmey/php-parser

What this package is like to depend on

Last release 5 years ago

no release in 18 months

Ships fairly regularly

a new release about every 2 months

Most releases are documented

notes for 9 of 11 stable releases

Nothing withdrawn

no release was ever pulled

9 years old

33 releases · first in 2018

0 releases in the last 12 months

see the full history below

Release timeline

33 releases · Feb 2018 to Mar 2021
2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 33
  1. v0.8.0-rc.1.0.20210317185956-86da63c064a3 17 Mar 2021 pre-release

    Nothing published for this version

  2. v0.8.0-rc.1.0.20210213215434-367eff9de651 13 Feb 2021 pre-release

    Nothing published for this version

  3. v0.8.0-rc.1 29 Dec 2020 pre-release
    Release notes

    Merge pull request #117 from z7zmey/refactoring

    Refactoring

    Open source →
  4. v0.7.3-0.20201229193114-4d6130d98d34 29 Dec 2020 pre-release

    Nothing published for this version

  5. v0.7.3-0.20201229192840-5fd7577b66af 29 Dec 2020 pre-release

    Nothing published for this version

  6. v0.7.3-0.20201018163633-4f089bc24c26 18 Oct 2020 pre-release

    Nothing published for this version

  7. v0.7.3-0.20200903192120-0cd26d7f4b3d 03 Sep 2020 pre-release

    Nothing published for this version

  8. v0.7.2 26 Jul 2020
    Release notes

    [#105] Fix counting newlines in strings
    [#110] Fix JSON dumper
    [#109] Do not override Stmts in printNodeRoot()
    [#111] NamespaceResolver: Resolve PHP 7.4 class property types

    Open source →
  9. v0.7.1 14 Jun 2020
    Release notes

    [#107] fix infinite loop when $ appear between variable and the end of a template string

    Open source →
  10. v0.7.1-0.20200614203744-7d4cc3b6e555 14 Jun 2020 pre-release

    Nothing published for this version

  11. v0.7.0 09 Mar 2020
    Release notes

    [#82] PHP 7.4
    [#93] Wrong line number when parsing string
    [#91] Scanner doesn't support \x80-\xff identifiers
    [#86] JsonDumper don't work
    [#78] Print echo
    [#80] Ragel based lexer

    Open source →
  12. v0.6.2-0.20200309115158-c9961c21245d 09 Mar 2020 pre-release

    Nothing published for this version

  13. v0.6.1 20 Aug 2019
    Release notes

    #96 handle lexer errors

    Open source →
  14. v0.6.0 25 Feb 2019
    Release notes

    new

    golang/json dumper
    saving and printing free-floating comments and whitespaces

    nodes

    attribute StringVar was removed from expr.Variable
    node stmt.Die was removed, added Die attribute to stmt.Exit instead

    optimizations

    save position within node
    use sync.Pool to reuse scanner.Token

    bugfix

    __halt_compiler(); terminates parsing process
    accept backslash+newline in single quotes
    fixed /*/ comment termination
    fixed crash on an empty list item, missed items are represented by empty *expr.ArrayItem

    Open source →
  15. v0.5.2-0.20200108074723-e27faddfa588 08 Jan 2020 pre-release

    Nothing published for this version

  16. v0.5.2-0.20200108073140-003ee67a86ae 08 Jan 2020 pre-release

    Nothing published for this version

  17. v0.5.2-0.20191229223145-2bf270c61b6f 29 Dec 2019 pre-release

    Nothing published for this version

  18. v0.5.2-0.20191027232055-0b9ab6e7386e 27 Oct 2019 pre-release

    Nothing published for this version

  19. v0.5.2-0.20190607063335-e4a208e2a9d8 07 Jun 2019 pre-release

    Nothing published for this version

  20. v0.5.2-0.20190328191051-f06a8ebb51f6 28 Mar 2019 pre-release

    Nothing published for this version

  21. v0.5.1 26 Jun 2018
    Release notes

    #44: if array item list ends by a comma, last nil does not removed
    #44: fixed crash on an empty list item
    #41: Namespace resolver now does not resolve build-in primitives
    Fixed bug: Namespace resolver fails when TraitUse does not contain adaptations
    #40: memory allocations reduced for position.Position by using sync.Pool
    #27: memory allocations reduced for scanner.Token by using sync.Pool
    #26: TrimLeft replaced by TrimLeftFunc (small optimization)
    #38: fixed saving positions for php5 ArrayDimFetch, PropertyFetch and MethodCall nodes
    #34: fixed saving position for Class node

    Open source →
  22. v0.5.1-0.20190607064819-498e93d17881 07 Jun 2019 pre-release

    Nothing published for this version

  23. v0.5.0 07 Jun 2018
    Release notes

    Enhancements:

    • Error-tolerant parsing
    • Possibility to parse files concurrently
    • Saving all comments
    • Saving comments position

    Breaking changes:

    • Removed DocComment and PlainComment types
    • Removed boolWithToken, altSintaxNode, nodesWithEndToken types
    • Created node.Root, node.ArgumentList, stmt.TraitAdaptationList, stmt.CaseList, stmt.ClassExtends, stmt.ClassImplements, stmt.InterfaceExtends, expr.Reference nodes
    • Changed ClosureUse node purpose, now it represents variables list instead of wrapping the variable
    • Builder was renamed to PositionBuilder
    • scanner.CreateToken returns pointer
    • scanner.Token saves position as position.Position
    • Parser interface moved to parser package
    • token package merged into scanner package
    • Positions and Comments moved into parser package

    Fixes:

    • scanner: added (binary) cast
    • #28 fixed race conditions
    • #18 heredocLabel variable moved from global into scanner.Lexer
    • fixed panic on 32-bit systems
    • fixed bug when scanning an empty inline comment
    • fixed namespace resolver fail on anonymous class
    • fixed the saving non-latin comments

    Optimisations:

    • #21 refactored scanner.Lexer.charsToBytes and renamed to scanner.Lexer.tokenString
    Open source →
  24. v0.4.1-0.20180524091831-d67d45948ac1 24 May 2018 pre-release

    Nothing published for this version

  25. v0.4.0 06 Apr 2018
    Release notes

    Created simple pretty printer
    Created Heredoc node
    Fixed Heredoc scanning
    Fixed template strings and backquoted strings scanning
    Dumper now writes to io.writer
    Removed redundant nop before InlineHtml
    Renamed assign.AssignRef to assign.Reference
    Renamed cast nodes, remove Cast prefix

    Open source →
  26. v0.3.0 01 Mar 2018
    Release notes

    Namespace resolver

    Namespace resolver is a visitor that traverses nodes and resolves name nodes as fully qualified names.
    It does not change AST but collects resolved names into map[node.Node]string

    For Class, Interface, Trait, Function, ConstList nodes collects name with current namespace.
    For Name, Relative, 'FullyQualified' nodes resolves use aliases and collects a fully qualified name.

    Other changes

    • Remove the underscore from package names
    • Fix goreportcard.com warnings
    • Rename Walker to Walkable interface
    • Add Names interface
    • Add dumper and namespace_resolver tests
    Open source →
  27. v0.2.0 19 Feb 2018

    Nothing published for this version

  28. v0.1.0 06 Feb 2018

    Nothing published for this version

  29. v0.0.0-20210213215434-367eff9de651 13 Feb 2021 pre-release

    Nothing published for this version

  30. v0.0.0-20200309115535-d7e0c8f6daad 09 Mar 2020 pre-release

    Nothing published for this version

  31. v0.0.0-20180630213831-978e609f2907 30 Jun 2018 pre-release

    Nothing published for this version

  32. v0.0.0-20180524091831-d67d45948ac1 24 May 2018 pre-release

    Nothing published for this version

  33. v0.0.0-20180410215857-983c721e83bb 10 Apr 2018 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive