Giter VIP home page Giter VIP logo

Comments (17)

hernandev avatar hernandev commented on May 30, 2024 3

gonna start working on a PR prototype, we can discuss it from there

from phpol.

filhocodes avatar filhocodes commented on May 30, 2024 2

@marcusagm @joubertredrat It depends much on what will be decided on #4, but I think HTML related like nl2br, encode/decode should be in a "HtmlString" component.

from phpol.

filhocodes avatar filhocodes commented on May 30, 2024
  • Components (title)

from phpol.

hernandev avatar hernandev commented on May 30, 2024

thanks @marcossffilho

from phpol.

filhocodes avatar filhocodes commented on May 30, 2024

At least for part 1, maybe:

  • change case (upper, lower, title, initial, etc)
  • length
  • contains
  • replace
  • slice

from phpol.

hernandev avatar hernandev commented on May 30, 2024

@marcossffilho i did most of it already as example, needs refactor but those should not take long to refactor and complete.

from phpol.

filhocodes avatar filhocodes commented on May 30, 2024

@hernandev I saw in your code you adhere to immutability. The library will adopt as a must be?

from phpol.

hernandev avatar hernandev commented on May 30, 2024

@marcossffilho no it was an example, but we need to keep ti consistent between components even

from phpol.

filhocodes avatar filhocodes commented on May 30, 2024

I prefer we have both, even though I favor immutability instead of the other.

from phpol.

marcusagm avatar marcusagm commented on May 30, 2024

My suggestions

  • length
  • reverse
  • charAt
  • match
  • slice
  • indexOf
  • split
  • replace
  • trim
  • pad
  • stripTags
  • stripSlashes
  • addSlashes
  • humanize
  • normalize
  • camelize
  • underscore
  • htmlEncode
  • htmlDecode
  • toLower
  • toUpper
  • upperFirst
  • lowerFirst
  • upperWords
  • countWords
  • shuffle
  • newLineToHtmlBreak

from phpol.

joubertredrat avatar joubertredrat commented on May 30, 2024

My suggestions

  • escape

from phpol.

marcusagm avatar marcusagm commented on May 30, 2024

make sense

from phpol.

pedrommone avatar pedrommone commented on May 30, 2024

@marcusagm @marcossffilho HTML component depends a lot, I think is a little of overwhelming for now.

For the whole component, I think basic operations are enough and everything can be expanded with new Components.

from phpol.

marcusagm avatar marcusagm commented on May 30, 2024

Yep, these functions can wait as weel as functions related with regex (match)

from phpol.

rodrigo-brito avatar rodrigo-brito commented on May 30, 2024

Suggestion of functions:

  • digits - Only numbers
  • letters - Only letters

from phpol.

DennyLoko avatar DennyLoko commented on May 30, 2024

All voting members have already voted, so this vote has passed.

Summary:

Eligible voters: 7
Quorum: 7
Voting in favor: 7
Voting against: None
Abstaining: None
Result: The vote has passed.

from phpol.

DennyLoko avatar DennyLoko commented on May 30, 2024

Now the discussion related to this component should be taken at the relevant PR: phpol/string#1.

from phpol.

Related Issues (16)

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.