Giter VIP home page Giter VIP logo

laravel-turkiye's Introduction

Hello 🌍

I'm a software developer and entrepreneur based in Tallinn, Estonia 🇪🇪

You can visit my personal blog here.

Here's what I'm working on 👇
Custom development shop where we build high quality software for our clients. We specialize in Laravel and Vue, but we also have awesome Node.js / Typescript developers.
Snack Hub lets you start a self-service mini-shop where you sell snacks and refreshments. Customers purchase right from their own mobile devices. So you don't need to invest in any hardware or keep staff busy with tiny sales.
Appkeep lets you monitor your sites and servers, warns you about security issues and even takes backups for you. Coming very soon!

laravel-turkiye's People

Contributors

aozisik avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

snowsoft

laravel-turkiye's Issues

Telefon numarası doğrulama ve formatlama

Aşağıdaki validation kurallarını sisteme ekleyebiliriz:

telefon
sabit_hat
mobil_hat

Uluslararası telefon numaraları için muhtemelen mevcut paketler vardır.
O yüzden bu pakette sadece yerel numaraları doğruladığımızı varsayabiliriz.

Bir numara için, +90 0-, 0- şeklinde başlayan varyasyonlar geçerliliği bozmamalı. Bu uygulamanın numarayı nasıl kullandığına göre değişebilir.

mobil_hat sadece alan kodu mobil operatör alan kodlarından biri olan numaraları kabul etmeli.
sabit_hat sadece alan kodu şehir alan kodlarından biri olan numaraları kabul etmeli.

telefon kuralı için:

5431234312 // geçerli
543 123 43 12 // geçerli
5 4312 3 4312 // geçerli
05431234312 // geçerli
+905431234312 // geçerli

2431234312 // geçersiz, böyle bir alan kodu yok
3123221212 // geçerli, Ankara'da bir sabit hat.

Numarayı aldıktan sonra istenilen formata getirmek için de bir takım fonksiyonlar olmalı.

Numarayı saklamak için

$numara = '0555 125 35 12';
telefon($numara)->sade(); // '5551253512'
telefon($numara)->sade('+90'); // '+905551253512'

Numarayı gösterirken

$numara = '5551253512';

// Bu bir <a href=""> içerisine konularak tıkla ve ara özelliği yapılabilir
telefon($numara)->link(); // 'tel:+905551253512'

telefon($numara)->goster(); // '555 125 35 12'
telefon($numara)->goster('+90'); // '+90 555 125 35 12'

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.