I'm a software developer and entrepreneur based in Tallinn, Estonia 🇪🇪
You can visit my personal blog here.
Türkiye için geliştirilen Laravel uygulamalarınıza yardımcı olan paket
I'm a software developer and entrepreneur based in Tallinn, Estonia 🇪🇪
You can visit my personal blog here.
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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.